Fix ABI dependent tests by providing an explicit target triple.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Sep 2012 18:46:03 +0000 (18:46 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Sep 2012 18:46:03 +0000 (18:46 +0000)
Patch by Joey Gouly.

llvm-svn: 164239

clang/test/CodeGenCXX/compound-literals.cpp
clang/test/CodeGenCXX/throw-expression-cleanup.cpp

index 17a31149e13e7a16aa901324b1534ce9228af034..5df0ea5876679d8ef4e987daf0a02a5ac7858db9 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple armv7-none-eabi -emit-llvm -o - %s | FileCheck %s
 
 struct X {
   X();
@@ -18,10 +18,10 @@ int f() {
   // CHECK-NEXT: [[I:%[a-z0-9]+]] = getelementptr inbounds {{.*}}* [[LVALUE]], i32 0, i32 0
   // CHECK-NEXT: store i32 17, i32* [[I]]
   // CHECK-NEXT: [[X:%[a-z0-9]+]] = getelementptr inbounds {{.*}} [[LVALUE]], i32 0, i32 1
-  // CHECK-NEXT: call void @_ZN1XC1EPKc({{.*}}[[X]]
+  // CHECK-NEXT: call %struct.X* @_ZN1XC1EPKc({{.*}}[[X]]
   // CHECK-NEXT: [[I:%[a-z0-9]+]] = getelementptr inbounds {{.*}} [[LVALUE]], i32 0, i32 0
   // CHECK-NEXT: [[RESULT:%[a-z0-9]+]] = load i32*
-  // CHECK-NEXT: call void @_ZN1YD1Ev
+  // CHECK-NEXT: call %struct.Y* @_ZN1YD1Ev
   // CHECK-NEXT: ret i32 [[RESULT]]
   return ((Y){17, "seventeen"}).i;
 }
index 0c41bc65bc3c27d0882681c5b620dd74a44abe67..e1ecd3804679f7c072631d61d718cd2188a0fc77 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s
+// RUN: %clang_cc1 %s -triple x86_64-none-linux-gnu -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s
 // PR13359
 
 struct X {