diff options
Diffstat (limited to 'clang/test/Modules')
4 files changed, 1 insertions, 48 deletions
diff --git a/clang/test/Modules/Inputs/msvc-vector-deleting-dtors/module.modulemap b/clang/test/Modules/Inputs/msvc-vector-deleting-dtors/module.modulemap deleted file mode 100644 index bb7ff1c9952c..000000000000 --- a/clang/test/Modules/Inputs/msvc-vector-deleting-dtors/module.modulemap +++ /dev/null @@ -1 +0,0 @@ -module msvc_vector_deleting_destructors { header "msvc-vector-deleting-dtors.h" export * } diff --git a/clang/test/Modules/Inputs/msvc-vector-deleting-dtors/msvc-vector-deleting-dtors.h b/clang/test/Modules/Inputs/msvc-vector-deleting-dtors/msvc-vector-deleting-dtors.h deleted file mode 100644 index 55492667e39d..000000000000 --- a/clang/test/Modules/Inputs/msvc-vector-deleting-dtors/msvc-vector-deleting-dtors.h +++ /dev/null @@ -1,16 +0,0 @@ -class Base1 { -public: - void operator delete[](void *); -}; -class Base2 { -public: - void operator delete(void *); -}; -struct Derived : Base1, Base2 { - virtual ~Derived() {} -}; -void in_h_tests(Derived *p, Derived *p1) { - ::delete[] p; - - delete[] p1; -} diff --git a/clang/test/Modules/msvc-vector-deleting-destructors.cpp b/clang/test/Modules/msvc-vector-deleting-destructors.cpp deleted file mode 100644 index a0806054355d..000000000000 --- a/clang/test/Modules/msvc-vector-deleting-destructors.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// RUN: rm -rf %t -// RUN: %clang_cc1 -fmodules -fimplicit-module-maps %s -x c++ -fmodules-cache-path=%t -I %S/Inputs/msvc-vector-deleting-dtors -emit-llvm -triple=i386-pc-win32 -o - | FileCheck %s --check-prefixes CHECK,CHECK32 -// RUN: %clang_cc1 -fmodules -fimplicit-module-maps %s -x c++ -fmodules-cache-path=%t -I %S/Inputs/msvc-vector-deleting-dtors -emit-llvm -triple=x86_64-pc-win32 -o - | FileCheck %s --check-prefixes CHECK,CHECK64 - -#include "msvc-vector-deleting-dtors.h" - -void call_in_module_function(void) { - in_h_tests(new Derived[2], new Derived[3]); -} - -void out_of_module_tests(Derived *p, Derived *p1) { - ::delete[] p; - - delete[] p1; -} - -// CHECK32-LABEL: define weak dso_local x86_thiscallcc noundef ptr @"??_EDerived@@UAEPAXI@Z" -// CHECK64-LABEL: define weak dso_local noundef ptr @"??_EDerived@@UEAAPEAXI@Z" -// CHECK: dtor.call_class_delete_after_array_destroy: -// CHECK32-NEXT: call void @"??_VBase1@@SAXPAX@Z"(ptr noundef %2) -// CHECK64-NEXT: call void @"??_VBase1@@SAXPEAX@Z"(ptr noundef %2) -// CHECK: dtor.call_glob_delete_after_array_destroy: -// CHECK32-NEXT: call void @"??_V@YAXPAXI@Z"(ptr noundef %2, i32 noundef 8) -// CHECK64-NEXT: call void @"??_V@YAXPEAX_K@Z"(ptr noundef %2, i64 noundef 16) -// CHECK: dtor.call_glob_delete: -// CHECK32-NEXT: call void @"??3@YAXPAXI@Z"(ptr noundef %this1, i32 noundef 8) -// CHECK64-NEXT: call void @"??3@YAXPEAX_K@Z"(ptr noundef %this1, i64 noundef 16) -// CHECK: dtor.call_class_delete: -// CHECK32-NEXT: call void @"??3Base2@@SAXPAX@Z"(ptr noundef %this1) -// CHECK64-NEXT: call void @"??3Base2@@SAXPEAX@Z"(ptr noundef %this1) diff --git a/clang/test/Modules/vtable-windows.cppm b/clang/test/Modules/vtable-windows.cppm index e45e32d6b4d6..dbde24c8a9bd 100644 --- a/clang/test/Modules/vtable-windows.cppm +++ b/clang/test/Modules/vtable-windows.cppm @@ -23,4 +23,4 @@ void test() { // Check that the virtual table is an unnamed_addr constant in comdat that can // be merged with the virtual table with other TUs. -// CHECK: unnamed_addr constant {{.*}}[ptr @"??_R4Fruit@@6B@", ptr @"??_EFruit@@UAEPAXI@Z", ptr @"?eval@Fruit@@UAEXXZ"{{.*}}comdat($"??_7Fruit@@6B@") +// CHECK: unnamed_addr constant {{.*}}[ptr @"??_R4Fruit@@6B@", ptr @"??_GFruit@@UAEPAXI@Z", ptr @"?eval@Fruit@@UAEXXZ"{{.*}}comdat($"??_7Fruit@@6B@") |
