]> granicus.if.org Git - clang/commitdiff
Partially revert r184225 test changes and make a smaller and more generic fix.
authorStephen Lin <stephenwlin@gmail.com>
Tue, 18 Jun 2013 20:51:51 +0000 (20:51 +0000)
committerStephen Lin <stephenwlin@gmail.com>
Tue, 18 Jun 2013 20:51:51 +0000 (20:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184232 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/copy-constructor-synthesis-2.cpp
test/CodeGenCXX/default-constructor-template-member.cpp

index e84ffd93bee564a011008e251620ba12ed9f7732..03c66339947d78a403ade3f5a39eeff7c65166c7 100644 (file)
@@ -1,11 +1,7 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-unknown-linux | FileCheck --check-prefix=CHECKX86 %s
-// RUN: %clang_cc1 %s -emit-llvm -o - -triple=arm-linux-gnueabihf | FileCheck --check-prefix=CHECKARM %s
+// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
 
 struct A { virtual void a(); };
 A x(A& y) { return y; }
 
-// CHECKX86: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* %this, %struct.A*) unnamed_addr
-// CHECKX86: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2)
-
-// CHECKARM: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* returned %this, %struct.A*) unnamed_addr
-// CHECKARM: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2)
+// CHECK: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* {{.*}}%this, %struct.A*) unnamed_addr
+// CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2)
index 27f2ba26202316cf8a415cbdc6480f9dd730c908..215696405a4faed232db179a1ddc4a1551e0f630 100644 (file)
@@ -1,5 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-unknown-linux | FileCheck --check-prefix=CHECKX86 %s
-// RUN: %clang_cc1 %s -emit-llvm -o - -triple=arm-linux-gnueabihf | FileCheck --check-prefix=CHECKARM %s
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
 
 template <class T> struct A { A(); };
 struct B { A<int> x; };
@@ -7,10 +6,6 @@ void a() {
   B b;
 }
 
-// CHECKX86: call {{.*}} @_ZN1BC1Ev
-// CHECKX86: define linkonce_odr {{.*}} @_ZN1BC1Ev(%struct.B* %this) unnamed_addr
-// CHECKX86: call {{.*}} @_ZN1AIiEC1Ev
-
-// CHECKARM: call {{.*}} @_ZN1BC1Ev
-// CHECKARM: define linkonce_odr {{.*}} @_ZN1BC1Ev(%struct.B* returned %this) unnamed_addr
-// CHECKARM: call {{.*}} @_ZN1AIiEC1Ev
+// CHECK: call {{.*}} @_ZN1BC1Ev
+// CHECK: define linkonce_odr {{.*}} @_ZN1BC1Ev(%struct.B* {{.*}}%this) unnamed_addr
+// CHECK: call {{.*}} @_ZN1AIiEC1Ev