]> granicus.if.org Git - clang/commitdiff
Prepare for using MS ABI by default for Win32: update CodeGenCXX tests
authorHans Wennborg <hans@hanshq.net>
Fri, 13 Dec 2013 22:43:52 +0000 (22:43 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 13 Dec 2013 22:43:52 +0000 (22:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197281 91177308-0d34-0410-b5e6-96231b3b80d8

97 files changed:
test/CodeGenCXX/2003-11-27-MultipleInheritanceThunk.cpp
test/CodeGenCXX/2004-03-08-ReinterpretCastCopy.cpp
test/CodeGenCXX/2004-03-09-UnmangledBuiltinMethods.cpp
test/CodeGenCXX/2006-09-12-OpaqueStructCrash.cpp
test/CodeGenCXX/2010-05-11-alwaysinlineinstantiation.cpp
test/CodeGenCXX/PR5093-static-member-function.cpp
test/CodeGenCXX/PR5863-unreachable-block.cpp
test/CodeGenCXX/address-of-fntemplate.cpp
test/CodeGenCXX/attr-cleanup.cpp
test/CodeGenCXX/attr-used.cpp
test/CodeGenCXX/block-byref-cxx-objc.cpp
test/CodeGenCXX/block.cpp
test/CodeGenCXX/c-linkage.cpp
test/CodeGenCXX/captured-statements.cpp
test/CodeGenCXX/const-base-cast.cpp
test/CodeGenCXX/const-global-linkage.cpp
test/CodeGenCXX/constructor-attr.cpp
test/CodeGenCXX/constructor-direct-call.cpp
test/CodeGenCXX/constructor-init-reference.cpp
test/CodeGenCXX/copy-assign-synthesis-2.cpp
test/CodeGenCXX/copy-constructor-synthesis-2.cpp
test/CodeGenCXX/coverage.cpp
test/CodeGenCXX/cxx0x-defaulted-templates.cpp
test/CodeGenCXX/cxx11-noreturn.cpp
test/CodeGenCXX/cxx11-unrestricted-union.cpp
test/CodeGenCXX/debug-info-char16.cpp
test/CodeGenCXX/debug-info-enum.cpp
test/CodeGenCXX/debug-info-gline-tables-only.cpp
test/CodeGenCXX/debug-info-global-ctor-dtor.cpp
test/CodeGenCXX/debug-info-method.cpp
test/CodeGenCXX/debug-info-same-line.cpp
test/CodeGenCXX/debug-info-template-limit.cpp
test/CodeGenCXX/debug-info-thunk.cpp
test/CodeGenCXX/debug-info-use-after-free.cpp
test/CodeGenCXX/default-constructor-default-argument.cpp
test/CodeGenCXX/default-constructor-template-member.cpp
test/CodeGenCXX/default-destructor-nested.cpp
test/CodeGenCXX/deferred-global-init.cpp
test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp
test/CodeGenCXX/destructor-exception-spec.cpp
test/CodeGenCXX/duplicate-mangled-name.cpp
test/CodeGenCXX/dynamic_cast-no-rtti.cpp
test/CodeGenCXX/elide-call-reference.cpp
test/CodeGenCXX/extern-c.cpp
test/CodeGenCXX/function-template-explicit-specialization.cpp
test/CodeGenCXX/function-template-specialization.cpp
test/CodeGenCXX/global-llvm-constant.cpp
test/CodeGenCXX/implicit-instantiation-1.cpp
test/CodeGenCXX/instrument-functions.cpp
test/CodeGenCXX/internal-linkage.cpp
test/CodeGenCXX/mangle-abi-examples.cpp
test/CodeGenCXX/mangle-address-space.cpp
test/CodeGenCXX/mangle-local-class-names.cpp
test/CodeGenCXX/mangle-local-class-vtables.cpp
test/CodeGenCXX/mangle-local-classes-nested.cpp
test/CodeGenCXX/mangle-nullptr-arg.cpp
test/CodeGenCXX/mangle-std-externc.cpp
test/CodeGenCXX/mangle-template.cpp
test/CodeGenCXX/member-alignment.cpp
test/CodeGenCXX/microsoft-interface.cpp
test/CodeGenCXX/microsoft-new.cpp
test/CodeGenCXX/microsoft-uuidof.cpp
test/CodeGenCXX/ms_wide_predefined_expr.cpp
test/CodeGenCXX/noinline-template.cpp
test/CodeGenCXX/pr11797.cpp
test/CodeGenCXX/pr12104.cpp
test/CodeGenCXX/pr9965.cpp
test/CodeGenCXX/pragma-weak.cpp
test/CodeGenCXX/predefined-expr.cpp
test/CodeGenCXX/reference-field.cpp
test/CodeGenCXX/reference-init.cpp
test/CodeGenCXX/return.cpp
test/CodeGenCXX/scoped-enums.cpp
test/CodeGenCXX/specialized-static-data-mem-init.cpp
test/CodeGenCXX/stmtexpr.cpp
test/CodeGenCXX/template-dependent-bind-temporary.cpp
test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
test/CodeGenCXX/throw-expression-dtor.cpp
test/CodeGenCXX/thunk-use-after-free.cpp
test/CodeGenCXX/trivial-constructor-init.cpp
test/CodeGenCXX/vararg-non-pod.cpp
test/CodeGenCXX/virt-dtor-gen.cpp
test/CodeGenCXX/virt-dtor-key.cpp
test/CodeGenCXX/virt-template-vtable.cpp
test/CodeGenCXX/virtual-base-ctor.cpp
test/CodeGenCXX/virtual-base-destructor-call.cpp
test/CodeGenCXX/virtual-destructor-synthesis.cpp
test/CodeGenCXX/virtual-function-calls.cpp
test/CodeGenCXX/virtual-implicit-copy-assignment.cpp
test/CodeGenCXX/virtual-implicit-move-assignment.cpp
test/CodeGenCXX/virtual-inherited-destructor.cpp
test/CodeGenCXX/virtual-pseudo-destructor-call.cpp
test/CodeGenCXX/visibility-hidden-extern-templates.cpp
test/CodeGenCXX/volatile-1.cpp
test/CodeGenCXX/vtable-cast-crash.cpp
test/CodeGenCXX/weak-extern-typeinfo.cpp
test/CodeGenCXX/weak-external.cpp

index 3e5339732767e55e440464de8712a65cb3415af7..f9c6566bc38621f679ecfe75430cb13e5c664c55 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm %s -o -
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o -
+// RUN: %clang_cc1 -cxx-abi microsoft -fno-rtti -emit-llvm %s -o -
 
 
 struct CallSite {
index a6e2e30dd59bb22486f881f115b4f7be84187c6d..b2bb292130b1a9fa238dfd610e6e70b4cbd057c8 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm %s -o -
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o -
+// RUN: %clang_cc1 -cxx-abi microsoft -fno-rtti -emit-llvm %s -o -
 
 struct A {
   virtual void Method() = 0;
index 5d8c8b004b791d62dc8f680806fd1342689f9909..0f82091a12a38886a914b5a71a2e3805e77ae538 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 
 // CHECK: _ZN11AccessFlags6strlenEv
 struct AccessFlags {
index bd270dd6023810efe117817f35f134fd41a5fcfc..59af8f46241095829790fc9ef322a7dc684f8e23 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -o - %s
+// RUN: %clang_cc1 -cxx-abi microsoft -fno-rtti -emit-llvm -o - %s
 
 struct A {
    virtual ~A();
index fe0740b7cb5c5ca309a541894aa2c1c6973e7108..92d2e3ebf5900a1e74c2275883ddcef49f6d05e0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium %s -o - | FileCheck %s
 
 // CHECK-NOT: ZN12basic_stringIcEC1Ev
 // CHECK: ZN12basic_stringIcED1Ev
index ceab8528e8bcb456e61bcf3df6a096d0a14ae344..8639a8490b231d1c0fb1de103fddbe623380530c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 struct a {
   static void f();
 };
index 3f32d75704354c4812f0adf3cb4d5331853b05cc..c4d7471e4d393e89e8a5289c2739e79d5d628760 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -emit-llvm-only %s
+// RUN: %clang_cc1 -cxx-abi itanium -fcxx-exceptions -fexceptions -emit-llvm-only %s
 
 // PR5863
 class E { };
index 71794520f0a0105d71a60596e21ad692d331252c..e6a355a6e5b9b3a011fde3395d0f52fdeb44f4a7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 template <typename T> void f(T) {}
 template <typename T> void f() { }
 
index ff15b03de57c5f988b638f74275491a746056272..fe1167b8d8d821c03ad1299a528705a3ceb3b46b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 
 namespace N {
   void free(void *i) {}
index 2c82184081b9125f79ba842f5ee5ac758ed52f1a..0852511ea5eb24d3873205e7848adbd64de4dbf4 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 
 // <rdar://problem/8684363>: clang++ not respecting __attribute__((used)) on destructors
 struct X0 {
index 616fd67ccc3840c68f93a98fbd096756e8644564..2d9243e145b18420be951852d886501fd7a4de32 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - -fblocks | FileCheck %s
 // rdar://8594790
 
 struct A {
index 619d8b0c7ba4d8ea9778dc49055f6d2775c0da67..93e22dcd6b8a50aff041b05b334d55555ba78b70 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks 
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - -fblocks 
+// RUN: %clang_cc1 %s -cxx-abi microsoft -fno-rtti -emit-llvm -o - -fblocks 
 // Just test that this doesn't crash the compiler...
 
 void func(void*);
index a7d018d58dfd2245ae43c30c12cb64592c1247dc..469652cec4869498bd8d5f45a81e8b039baf99d0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 // pr6644
 
 extern "C" {
index 2843c2b69c9568e908d37e6ed1c502f80c035849..8dc9b3d4c21d095fbf5f8bf1cdcac8db3e4862ee 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o %t
+// RUN: %clang_cc1 -std=c++11 -cxx-abi itanium -emit-llvm %s -o %t
 // RUN: FileCheck %s -input-file=%t -check-prefix=CHECK-1
 // RUN: FileCheck %s -input-file=%t -check-prefix=CHECK-2
 // RUN: FileCheck %s -input-file=%t -check-prefix=CHECK-3
index 320c790c5e2d7a4e89ff7de8ebfc300765eccac9..fa856158e40d5535f1c60901dbb80fd8d34c232e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o - | FileCheck %s
 
 // Check that the following construct, which is similar to one which occurs
 // in Firefox, is folded correctly.
index df78fdd0287ccb91056e7a4df83f2bba447b0bb6..789ea71522850831b791f51c1f799f0a0acb86db 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 const int x = 10;
 const int y = 20;
index 4f6d635e95d1ead126f38550e1ec4239a587af26..77fc7c8cbd7f2be9ddba69634acca8303627c2f2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 // CHECK: @llvm.global_ctors
 
index 75e6f216ca51942d017dcecbc8a52e835e4b0daa..7a2a6000dfffdf01a9a2736d9681abff93cda855 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -Wmicrosoft %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -triple i686-pc-mingw32 -fms-extensions -Wmicrosoft %s -emit-llvm -o - | FileCheck %s
 
 class Test1 {
 public:
@@ -22,10 +22,10 @@ public:
 
 void f2() {
   // CHECK:  %var = alloca %class.Test2, align 4
-  // CHECK-NEXT:  call void @_ZN5Test2C1Ev(%class.Test2* %var)
+  // CHECK-NEXT:  call x86_thiscallcc void @_ZN5Test2C1Ev(%class.Test2* %var)
   Test2 var;
 
-  // CHECK-NEXT:  call void @_ZN5Test2C1Ev(%class.Test2* %var)
+  // CHECK-NEXT:  call x86_thiscallcc void @_ZN5Test2C1Ev(%class.Test2* %var)
   var.Test2::Test2();
 
   // CHECK:  call void @llvm.memcpy.p0i8.p0i8.i32(i8* %{{.*}}, i8* %{{.*}}, i32 8, i32 4, i1 false)
@@ -45,16 +45,16 @@ public:
 };
 
 void f3() {
-  // CHECK: call void @_ZN5Test3C1Ev(%class.Test3* %var)
+  // CHECK: call x86_thiscallcc void @_ZN5Test3C1Ev(%class.Test3* %var)
   Test3 var;
 
-  // CHECK-NEXT: call void @_ZN5Test3C1Ev(%class.Test3* %var2)
+  // CHECK-NEXT: call x86_thiscallcc void @_ZN5Test3C1Ev(%class.Test3* %var2)
   Test3 var2;
 
-  // CHECK-NEXT: call void @_ZN5Test3C1Ev(%class.Test3* %var)
+  // CHECK-NEXT: call x86_thiscallcc void @_ZN5Test3C1Ev(%class.Test3* %var)
   var.Test3::Test3();
 
-  // CHECK-NEXT: call void @_ZN5Test3C1ERKS_(%class.Test3* %var, %class.Test3* %var2)
+  // CHECK-NEXT: call x86_thiscallcc void @_ZN5Test3C1ERKS_(%class.Test3* %var, %class.Test3* %var2)
   var.Test3::Test3(var2);
 }
 
index 5e751597651885b3e2b2c77329c1f8996d4afd94..e16cbb3fa617cb1ca5bd146fe4c7b88695063a97 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | grep "store i32\* @x, i32\*\*"
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 int x;
 struct A {
@@ -6,4 +6,4 @@ struct A {
   A() : y(x) {}
 };
 A z;
-
+// CHECK: store i32* @x, i32**
index 3829f383ddee6fffc0007e2e202de8942e9e1c90..e0bd5ef34b7c312ad0c2ec97f63eb95651b712ed 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o - | FileCheck %s
 struct A {};
 A& (A::*x)(const A&) = &A::operator=;
 // CHECK-LABEL: define linkonce_odr {{.*}}%struct.A* @_ZN1AaSERKS_
index 03c66339947d78a403ade3f5a39eeff7c65166c7..e73a7f17f0515d91a93ab81d87eb7b713b9196a2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 struct A { virtual void a(); };
 A x(A& y) { return y; }
index 1f1611bd8fcd9694e45cb6ade2449121bbbb8b9c..b00f25bc1d2805aa16a2524e584c74420d64fbbf 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -test-coverage -femit-coverage-notes | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - -test-coverage -femit-coverage-notes | FileCheck %s
 
 extern "C" void test_name1() {}
 void test_name2() {}
index 92fbfff8abf3254e410818564d2009f6ce01841e..e906b2494f4a31ddf626f09231e5498be3098f5e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 template <typename T>
 struct X {
index 31c651d75efcf99c10b585706f0860030fbb18b3..527a8ae19a0d05c63c42f8c2a19aa13b3b7d1b66 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -std=c++11 %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -std=c++11 %s -o - | FileCheck %s
 
 int g();
 
index 0397775b7e3c73d9f070a438836416ef1d54d9b0..165d2862c1e34b473372b8b02c24c5c2f25e5123 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -std=c++11 -emit-llvm %s -o - | FileCheck %s
 
 struct A {
   A(); A(const A&); A(A&&); A &operator=(const A&); A &operator=(A&&); ~A();
index 06a05b31dd1c38c0bb86f8df16d424673da186d3..78da4c83026a848b3e170f33966ec25a3e82ed9d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o -| FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -std=c++11 -g %s -o -| FileCheck %s
 
 // 16 is DW_ATE_UTF (0x10) encoding attribute.
 char16_t char_a = u'h';
index f0e2608db856ae5b3fd0dbe328e866a002638a76..f1beb8d6887ed1fc98682fc35778ea7e0c024f1e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -g %s -o - | FileCheck %s
 
 // CHECK: [[ENUMS:![0-9]*]], {{[^,]*}}, {{[^,]*}}, {{[^,]*}}, {{[^,]*}}, {{[^,]*}}} ; [ DW_TAG_compile_unit ]
 // CHECK: [[ENUMS]] = metadata !{metadata [[E1:![0-9]*]], metadata [[E2:![0-9]*]], metadata [[E3:![0-9]*]]}
index 7ecdeb2ec22ec3d6ad64d51afb6475cab7c74a71..b766c73cc22a41f0432a067367278b88f5dc2749 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -gline-tables-only -S -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -fno-rtti -gline-tables-only -S -emit-llvm -o - | FileCheck %s
 // Checks that clang with "-gline-tables-only" doesn't emit debug info
 // for variables and types.
 
index afa77077a25d4928342ceaa10b27c81a60d1c3c6..a4ef046fc1edfb51da6f95becf4d4486906ad33a 100644 (file)
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 %s -g -fno-use-cxa-atexit -S -emit-llvm -o - \
+// RUN: %clang_cc1 %s -g -cxx-abi itanium -fno-use-cxa-atexit -S -emit-llvm -o - \
 // RUN:     | FileCheck %s --check-prefix=CHECK-NOKEXT
-// RUN: %clang_cc1 %s -g -fno-use-cxa-atexit -fapple-kext -S -emit-llvm -o - \
+// RUN: %clang_cc1 %s -g -cxx-abi itanium -fno-use-cxa-atexit -fapple-kext -S -emit-llvm -o - \
 // RUN:     | FileCheck %s --check-prefix=CHECK-KEXT
 
 class A {
index 50b3f66354e09be6b44bb84dec298efdc3374ca6..00e95750220d9e5da1585abf4c48af69c453274f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -std=c++11 -g %s -o - | FileCheck %s
 // CHECK: metadata !"_ZTS1A"} ; [ DW_TAG_class_type ] [A]
 // CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}} [protected]
 // CHECK: ![[THISTYPE:[0-9]+]] = {{.*}} ; [ DW_TAG_pointer_type ] {{.*}} [artificial] [from _ZTS1A]
index 519e9eeb87a4208362c33241f166db2e57bad37a..e1511f31e4314247f59e56497c55484e9a67e668 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -g -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 // Make sure that clang outputs distinct debug info for a function
 // that is inlined twice on the same line. Otherwise it would appear
index c3e241ecc8067a7b5dd0e9a84676024f6f427883..34e4373a753acd118f02243070c23ac6bb2f31b8 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -flimit-debug-info -cxx-abi itanium -g %s -o - | FileCheck %s
 
 // Check that this pointer type is TC<int>
 // CHECK: ![[LINE:[0-9]+]] = {{.*}}"TC<int>", {{.*}} metadata !"_ZTS2TCIiE"} ; [ DW_TAG_class_type ]
index 2a50895725344a69ce0985dbcdb40f544641724e..e67e23732b209dc5c94ac13d6f2ce5a5c4d43705 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -g -S -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -g -S -emit-llvm -o - | FileCheck %s
 
 struct A {
   virtual void f();
index 852e14895618b865d2a0cd21e405fbba755c7c9f..02825a26087564b3730646d34949827d2ae8ec6d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -g -emit-llvm-only %s
+// RUN: %clang_cc1 -g -cxx-abi itanium -emit-llvm-only %s
 // Check that we don't crash.
 // PR12305, PR12315
 
index 374a967e3e2a35a688189f9c23371c7178d5cbec..aa4f1737a11c9771c1adabe7399e88dedd0fcafc 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 // Check that call to constructor for struct A is generated correctly.
 struct A { A(int x = 2); };
index 215696405a4faed232db179a1ddc4a1551e0f630..22b5a1e9869a83e8f41948a193074dce8435f7fc 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o - | FileCheck %s
 
 template <class T> struct A { A(); };
 struct B { A<int> x; };
index 565a7279c56eed7cc8eb52cee50a9c83b57f633c..2afa9cf391a5af5f7a9612a56a5cdf100686eda8 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm-only
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm-only
 // PR6294
 
 class A {
index deb458f55c7dc6641fdc55acd7b540df611bab7d..644f4ca9cf014610559819b26007e180db03f68f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 // PR5967
 
 extern void* foo;
index f2ecfc1d38cc17f98f0d6a850b0805b718722459..8df53e43a33bd24800ace126fa31bda445d15a84 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 struct A { int i; };
 struct B { char j; };
index e111ba0ba8e5224d7a33e04c49b15ddb7d032fab..aa29d58d60b8d9bfaf781a140872afdd4ec64511 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm-only %s -std=c++11
-// RUN: %clang_cc1 -emit-llvm-only -fno-use-cxa-atexit %s -std=c++11
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm-only %s -std=c++11
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm-only -fno-use-cxa-atexit %s -std=c++11
 // RUN: %clang_cc1 -cxx-abi microsoft -fno-rtti -emit-llvm-only %s -std=c++11
 
 // PR13479: don't crash with -fno-exceptions.
index 892050c66840a791ae1466ac26e7f4db446fabc0..b8f0fb09ea4853506b03fe724b975532f9f23b88 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm-only %s -verify
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm-only %s -verify
 
 // rdar://15522601
 class MyClass {
index 0e26de5bcf8be30dbde9a72e8f0752be684d503a..16d746a5c151da95499a62ef141447f721b430a2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -verify -fno-rtti -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm %s -verify -fno-rtti -cxx-abi itanium -o - | FileCheck %s
 // expected-no-diagnostics
 
 struct A {
index 55d30e24c102ae08dd26e7c8be43439c78484bb7..c80e8fbfdf78d661a4f665e6c38b2edec2e827fd 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 // PR5695
 
 struct A { A(const A&); ~A(); };
index 5899b9348c5a3bcc29477d89c63a1a5135003b5b..f3522e869d0a01d073b3bbd50d51e8d441eecf0c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o - | FileCheck %s
 namespace foo {
 
 // CHECK-NOT: @a = global i32
index 5d26dcd61cf03812d36d72f3932338c2d6180878..b471917deb25db8c19a2c46f4360a828800a4abc 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium %s -o - | FileCheck %s
 
 template<typename T> void a(T);
 template<> void a(int) {}
index 4a79fb1d6747b3c93f1bc7612045b259c9cc4785..4ee9124590eff2be00ca77f34dad6a2e35c69019 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium %s -o - | FileCheck %s
 template<typename T, typename U>
 T* next(T* ptr, const U& diff);
 
index 2bd43b99a5d94880faa242a0f09994e64ff61cbb..6e202a7e0870e71d24bb70eabecea02392e72056 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 
 struct A {
   A() { x = 10; }
index bf6a14150892a648d47358e4fbd8ec11b802ca87..8c6f080977cd6c83e60e4f087bfd025e69fbe350 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o %t
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium %s -o %t
 
 template<typename T>
 struct X {
index 253e096108930d0f717e3a2398ff4fd29d1ad93b..664b2dc08ffaf2d71cac8ed88ef4404af900c699 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -S -emit-llvm -o - %s -finstrument-functions | FileCheck %s
+// RUN: %clang_cc1 -S -emit-llvm -cxx-abi itanium -o - %s -finstrument-functions | FileCheck %s
 
 // CHECK: @_Z5test1i
 int test1(int x) {
index 56cb81030922c496d5adf9204d82459107b54f07..927e89e9c62c7d6a652c2020fad04bc618777973 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 
 struct Global { Global(); };
 template<typename T> struct X { X() {} };
index 7124078320b0439c84d4361edd40db38aebe1ab6..4d22f1625478d6bf22cbd1ddecb96fc109633641 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 
 // CHECK: @_ZTVZ3foovEN1C1DE =
 // CHECK: @_ZTVZN1A3fooEiE1B =
index 4a4a1f3f56e9bdaa60feaf83125376af63fd5f78..466a3b07ddb3ea4641b501d280d09ea57dc0226d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 
 // CHECK-LABEL: define void @_Z2f0Pc
 void f0(char *p) { }
index 8b950fcd17766e4f3a2c87ee443d9bb927bde547..2055d0a443024760f918c5f217fd2c0a3af3306f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 
 // CHECK:  @_ZZ4FUNCvEN4SSSSC1ERKf
 // CHECK: @_ZZ4FUNCvEN4SSSSC2E_0RKf
index d9d3afe459337817f68c8112ec0ee8b3dc2f6837..7ddad5d16522d14139e875271db4b105c71d4d6a 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 
 // CHECK: @_ZTVZN1J1KEvE1C = {{.*}} @_ZTIZN1J1KEvE1C {{.*}} @_ZZN1J1KEvENK1C1FEv 
 // CHECK: @_ZTIZN1J1KEvE1C = {{.*}} @_ZTSZN1J1KEvE1C
index fafa5d4e58e6df49d7e8f54fa8c8a91aecd73183..fb30562008be53cce3bffdab9065a4b5a0651a35 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 
 // CHECK: @_ZTVZZ1HvEN1S1IEvE1S = 
 
index b55ea6dd2dd436b79cc03d7161490fc7193f1f74..c3f4501f81481614c212c489d9fc4c537334a215 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 template<int *ip> struct IP {};
 
index a478dee4a42c7d4bab0c43546256a49668579706..09a2533cb00cf44e7f8854b270739209813070f4 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 %s -DNS=std -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-STD
-// RUN: %clang_cc1 %s -DNS=n -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-N
+// RUN: %clang_cc1 %s -DNS=std -emit-llvm -cxx-abi itanium -o - | FileCheck %s --check-prefix=CHECK-STD
+// RUN: %clang_cc1 %s -DNS=n -emit-llvm -cxx-abi itanium -o - | FileCheck %s --check-prefix=CHECK-N
 
 // _ZNSt1DISt1CE1iE = std::D<std::C>::i
 // CHECK-STD: @_ZNSt1DISt1CE1iE = 
index 9bd74b54a5ba5f362656055ab0a69dec3c53d8d4..0c29a254bfe4c1ae43ee56ddf79e188a18d1f3a8 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
 namespace test1 {
 int x;
 template <int& D> class T { };
index 78026d4e0419cad069c7039a7de61a4f4654ab24..ba853c32d523b08e15d42a82dad40304b189fbb7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium %s -o - | FileCheck %s
 
 // rdar://7268289
 
index 419075a863032e1337b8fa92e1c22cb67e432121..98df69cf20df0c260a0713648c58e325210104d3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 -fms-extensions -Wno-microsoft -triple=i386-pc-win32 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -fms-extensions -Wno-microsoft -triple=i386-pc-mingw32 -emit-llvm %s -o - | FileCheck %s
 
 __interface I {
   int test() {
@@ -20,23 +20,23 @@ int fn() {
 // CHECK: @_ZTV1S = linkonce_odr unnamed_addr constant [3 x i8*] [i8* null, i8* bitcast ({ i8*, i8*, i8* }* @_ZTI1S to i8*), i8* bitcast (i32 (%struct.S*)* @_ZN1S4testEv to i8*)]
 
 // CHECK-LABEL: define i32 @_Z2fnv()
-// CHECK:   call void @_ZN1SC1Ev(%struct.S* %s)
-// CHECK:   %{{[.0-9A-Z_a-z]+}} = call i32 @_ZN1S4testEv(%struct.S* %s)
+// CHECK:   call x86_thiscallcc void @_ZN1SC1Ev(%struct.S* %s)
+// CHECK:   %{{[.0-9A-Z_a-z]+}} = call x86_thiscallcc i32 @_ZN1S4testEv(%struct.S* %s)
 
-// CHECK-LABEL: define linkonce_odr void @_ZN1SC1Ev(%struct.S* %this)
-// CHECK:   call void @_ZN1SC2Ev(%struct.S* %{{[.0-9A-Z_a-z]+}})
+// CHECK-LABEL: define linkonce_odr x86_thiscallcc void @_ZN1SC1Ev(%struct.S* %this)
+// CHECK:   call x86_thiscallcc void @_ZN1SC2Ev(%struct.S* %{{[.0-9A-Z_a-z]+}})
 
-// CHECK-LABEL: define linkonce_odr i32 @_ZN1S4testEv(%struct.S* %this)
-// CHECK:   %{{[.0-9A-Z_a-z]+}} = call i32 @_ZN1I4testEv(%__interface.I* %{{[.0-9A-Z_a-z]+}})
+// CHECK-LABEL: define linkonce_odr x86_thiscallcc i32 @_ZN1S4testEv(%struct.S* %this)
+// CHECK:   %{{[.0-9A-Z_a-z]+}} = call x86_thiscallcc i32 @_ZN1I4testEv(%__interface.I* %{{[.0-9A-Z_a-z]+}})
 
-// CHECK-LABEL: define linkonce_odr i32 @_ZN1I4testEv(%__interface.I* %this)
+// CHECK-LABEL: define linkonce_odr x86_thiscallcc i32 @_ZN1I4testEv(%__interface.I* %this)
 // CHECK:   ret i32 1
 
-// CHECK-LABEL: define linkonce_odr void @_ZN1SC2Ev(%struct.S* %this)
-// CHECK:   call void @_ZN1IC2Ev(%__interface.I* %{{[.0-9A-Z_a-z]+}})
+// CHECK-LABEL: define linkonce_odr x86_thiscallcc void @_ZN1SC2Ev(%struct.S* %this)
+// CHECK:   call x86_thiscallcc void @_ZN1IC2Ev(%__interface.I* %{{[.0-9A-Z_a-z]+}})
 // CHECK:   store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1S, i64 0, i64 2), i8*** %{{[.0-9A-Z_a-z]+}}
 
-// CHECK-LABEL: define linkonce_odr void @_ZN1IC2Ev(%__interface.I* %this)
+// CHECK-LABEL: define linkonce_odr x86_thiscallcc void @_ZN1IC2Ev(%__interface.I* %this)
 // CHECK:   store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1I, i64 0, i64 2), i8*** %{{[.0-9A-Z_a-z]+}}
 
 // CHECK-NOT-LABEL: define linkonce_odr %__interface.I* @_ZN1IaSERKS_(%__interface.I* %this, %__interface.I*)
index 48e93d4aa0f88ba34694c6abcd487c4785ecc15c..784de7b53df10a8128021339f0d4e59d2affd303 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple i686-pc-win32 -fms-compatibility %s -emit-llvm -o - | FileCheck %s\r
+// RUN: %clang_cc1 -triple i686-pc-win32 -cxx-abi itanium -fms-compatibility %s -emit-llvm -o - | FileCheck %s\r
 \r
 #include <stddef.h>\r
 \r
index ab3d9b64c6f8baa963c958db33c728db0defc5ce..0ce30035f99c4f68b0b34d86eb80713523ceb531 100644 (file)
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - -DDEFINE_GUID -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefix=CHECK-DEFINE-GUID
-// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions | FileCheck %s
-// RUN: %clang_cc1 -emit-llvm %s -o - -DDEFINE_GUID -DWRONG_GUID -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefix=CHECK-DEFINE-WRONG-GUID
+// RUN: %clang_cc1 -emit-llvm %s -o - -DDEFINE_GUID -triple=i386-pc-win32 -fms-extensions -cxx-abi itanium | FileCheck %s --check-prefix=CHECK-DEFINE-GUID
+// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions -cxx-abi itanium | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm %s -o - -DDEFINE_GUID -DWRONG_GUID -triple=i386-pc-win32 -fms-extensions -cxx-abi itanium | FileCheck %s --check-prefix=CHECK-DEFINE-WRONG-GUID
 
 #ifdef DEFINE_GUID
 struct _GUID {
index 5f0bcdee8c0533d4e7d7eca620ddd5f39f876fcd..f92486d6d369aed9f3c15d911267d95c9318fc6d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -fms-extensions -triple i686-pc-win32 -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -fms-extensions -triple i686-pc-win32 -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 // CHECK: @L__FUNCTION__._Z4funcv = private constant [5 x i16] [i16 102, i16 117, i16 110, i16 99, i16 0], align 2
 
index c7b547658653b0999bc1e865eef6c111faed30fe..8efecec62e5d99cede4d82a52f0b2fbe742e9b1f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s  -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s  -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 
 // This was a problem in Sema, but only shows up as noinline missing
 // in CodeGen.
index 1098372ce3894ec25dcf5c4fec2cfda6cb55d856..80e1b0729137aacc5b3651b6fa2778ed0ae53b08 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -fvisibility hidden -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -fvisibility hidden -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 namespace std __attribute__ ((__visibility__ ("default"))) {}
 #pragma GCC visibility push(default)
index a62f04b66834af8a8c3fc20b0e39f662ee1974dd..be17f2f39f9b93f3658c4a0ec9e8f94d7a8ac8c6 100644 (file)
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -include %S/pr12104.h %s -emit-llvm -o - | FileCheck %s
-// RUN: %clang_cc1 -x c++ -emit-pch -o %t %S/pr12104.h
-// RUN: %clang_cc1 -include-pch %t %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -include %S/pr12104.h %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -x c++ -cxx-abi itanium -emit-pch -o %t %S/pr12104.h
+// RUN: %clang_cc1 -include-pch %t %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 template struct Patch<1>;
 
index c2d54e19215d718231816c21ee5c359c039ea015..fe2cd71381265dd00a6beb99805c9a3f6bdcdc72 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 struct A { A(); };
 template<typename T>
 struct X : A // default constructor is not trivial
index b12afb20750078154f7f79119c7363ef90ddf48c..9d7d489499a4b6947c82b40c3d34513c7d61dcc2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o - | FileCheck %s
 
 #pragma weak zex
 int zex;
index 9062ee095c3a447ec3a46fb86134cd79dcd9a438..912b555acf00c4ba6ba3e90f57649f5bbb73936d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 // CHECK: private unnamed_addr constant [15 x i8] c"externFunction\00"
 // CHECK: private unnamed_addr constant [26 x i8] c"void NS::externFunction()\00"
index 0312029259520dd09646a1a36179244f398a3d38..aa34fa3bd2c932d56e13dfcadc2ec39cbd980364 100644 (file)
@@ -1,6 +1,8 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s -O2 | grep "@_Z1bv"
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s -O2 | FileCheck %s
 
 // Make sure the call to b() doesn't get optimized out.
 extern struct x {char& x,y;}y;
 int b();      
 int a() { if (!&y.x) b(); }
+
+// CHECK: @_Z1bv
index d47b1f37489c73eb53101e6c106a740ced95b586..2c14934dca62aa252fa36a2d36ce034da3117b6d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm-only -verify %s
+// RUN: %clang_cc1 -emit-llvm-only -cxx-abi itanium -verify %s
 // expected-no-diagnostics
 
 struct XPTParamDescriptor {};
index 1975055fdb74e8d0426afaba98c59c57210bccec..afc52a631acf6f299f9e74a0df5ad7633e2b6065 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
-// RUN: %clang_cc1 -emit-llvm -O -o - %s | FileCheck %s --check-prefix=CHECK-OPT
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -O -o - %s | FileCheck %s --check-prefix=CHECK-OPT
 
 // CHECK:     @_Z9no_return
 // CHECK-OPT: @_Z9no_return
index 159172d1662e716da23feb62b670591c293e51cd..19513867e602513f0585d0b6f6272f46f0135d27 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 // PR9923
 enum class Color { red, blue, green };
index c2a2ddb11254a812a5ca7669b474f05d076cd3e3..e6bd6e742f369e237ccef954ed9e51cf45eedfbc 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 // rdar: // 8562966
 // pr8409
 
index 5d4d6bcce45837673ce2e219631f731324fa3138..af39440a74ad1638f40abb49095a38331862b27e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -Wno-unused-value -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -Wno-unused-value -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 // rdar: //8540501
 extern "C" int printf(...);
 extern "C" void abort();
index ca980c3ff685498613ccd1c8c410c42a4913dd17..3f70d8d9a0b86aae4f13a3866e731658a29bb03f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 // rdar: //8620524
 // PR7851
 struct string {
index 53e6db63710f853c2268163cf10b01a1de870f41..2069ea131565a265701f5ad7956d550be5540970 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fvisibility hidden -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -fvisibility hidden -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 // Verify that symbols are hidden.
 // CHECK: @_ZN1CIiE5Inner6Inner26StaticE = weak_odr hidden global
index cb4a6c69bdddfdd968f44762fef532f9a6c1b31b..6e0cf48507b5662bbd63dd2539159dd7ca69eac2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm-only -verify -fcxx-exceptions -fexceptions
+// RUN: %clang_cc1 %s -emit-llvm-only -verify -cxx-abi itanium -fcxx-exceptions -fexceptions
 // expected-no-diagnostics
 // PR7281
 
index d70e9025683d71b241f3e0dbf6d563a0ac75b4ca..a74b1d528a9375e59630f6226aff6a36e9cce9b8 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm-only -O1 %s
+// RUN: %clang_cc1 -emit-llvm-only -cxx-abi itanium -O1 %s
 // This used to crash under asan and valgrind.
 // PR12284
 
index 65ed45e259c5486ecb08fe3d7d0c685cb6209fe5..bfbec0baa695a5736b2f696f2cded3546cb8e402 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - -std=c++11 | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm %s -o - -std=c++11 -cxx-abi itanium | FileCheck %s
 
 extern "C" int printf(...);
 
index 9497179ddf05022465d04227c2bb588e8ee6b5a2..12a0adade59c569ca6121505ca6c19e4ca161a66 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -Wno-error=non-pod-varargs -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -Wno-error=non-pod-varargs -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 struct X {
   X();
index b3041a58a96a071a0f0c0b23e4576474394c2587..706f23cf0a80709681264cdb76da0654e8ca5448 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -o - -emit-llvm %s | FileCheck %s
+// RUN: %clang_cc1 -o - -cxx-abi itanium -emit-llvm %s | FileCheck %s
 // PR5483
 
 // Make sure we generate all three forms of the destructor when it is virtual.
index a8fa371d3fa83e2f948e2335d54418b77c9f29fb..aa119ec057bc42d3fedcc8dca84162829355898b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm %s -o - | FileCheck %s
 // CHECK: @_ZTI3foo = unnamed_addr constant
 class foo {
    foo();
index a6067d62c61d27acb5957b7afe9698e78b34afa5..16c23aad39fd7fdea03a523d0e617ca51a294551 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 template<class T> class A {
 public:
index 2d81ebd3a407d6358c37eac9f32db9c5702ce2c0..28b4e4005a6dfbc15a4bcf412a262f350a0ed6af 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -O2 | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - -O2 | FileCheck %s
 
 struct B;
 extern B x;
index 5014eaf2643b1af8382895467d5e45af35995b52..6b98c64d5370eb025fea20f1405c792f748299c6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 struct basic_ios{~basic_ios(); };
 
index 90f66a817db11d6911a2f50a5ee0a1603329a189..f513ddfa95b5972dea55b534a7479125123b81a9 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 struct box {
   virtual ~box();
index 111d1a2193f178ec71adf55a76135c9d12bcb846..b3e2d1f0d1c21f72b2db2a64429b8a6ad2e40af5 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -std=c++11 -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -std=c++11 -emit-llvm -o - | FileCheck %s
 
 // PR5021
 namespace PR5021 {
index 70bc6fceb36129339d899f0d20219df788d93514..6941a7723a57fa30f3a08af6b2380bdb9d3d1828 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -o - %s | FileCheck %s
 
 struct D;
 struct B {
index d8ac1ed4c48900b7417a5f617c4fe2b8fc84b618..b8ecb406dd1e580da2523060d6b36d674b34ef2e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -std=c++11 -o - %s | FileCheck %s
+// RUN: %clang_cc1 -cxx-abi itanium -emit-llvm -std=c++11 -o - %s | FileCheck %s
 
 struct D;
 struct B {
index 509d40ae2fef3a8e767837129dc8d12c818102d5..f36e56c68d9f02ed97a4e245177bc0e548cf445d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm-only
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm-only
 
 struct A { virtual ~A(); };
 struct B : A {
index 0d3574e46d336f06d9f4267789beb5a5a8720bde..0d963f9f80ae52c6200d772d51cee1bf37b98421 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cxx-abi itanium -emit-llvm -o - | FileCheck %s
 
 struct A {
   virtual ~A();
index 2cbfba9d5f4bc2d5ab9c741ef1727116b4f670a6..8061412194f1795e6a70b55c2a1ff0e297f4bb5b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -O1 -emit-llvm -o - -fvisibility hidden %s | FileCheck %s
+// RUN: %clang_cc1 -O1 -cxx-abi itanium -emit-llvm -o - -fvisibility hidden %s | FileCheck %s
 
 template<typename T>
 struct X {
index 472c01a4e23a24ad24f38b1341bdcb1d1824343c..aa900c3fa80ccc7b359fb1d2909518af0275126b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -Wno-unused-value -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -Wno-unused-value -cxx-abi itanium -emit-llvm %s -o - | FileCheck %s
 
 // CHECK: @i = global [[INT:i[0-9]+]] 0
 volatile int i, j, k;
index cc419fd4f522d514b9ebc57158921afe5600af04..3321fc70272411dbdeef89479fa3224dc08684f3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm-only %s
+// RUN: %clang_cc1 -emit-llvm-only -cxx-abi itanium %s
 struct A
 {
 A();    
index 3c3406e55970c835e513e96a2cbdca8dc9cba510..9e8504daa50e9b2f5ea72ae5682e05461f7e3b0c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
 // rdar://10246395
 
 #define WEAK __attribute__ ((weak)) 
index dad54f6861b0ef6e95252d849d90506e47ac98fb..d030e226548f570d4e799bd6545319989acd6296 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang -fexceptions %s -S -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -cxx-abi itanium %s -S -emit-llvm -o - | FileCheck %s
 // PR4262
 
 // CHECK-NOT: _ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag