diff options
| author | David Blaikie <dblaikie@gmail.com> | 2012-09-19 18:46:03 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2012-09-19 18:46:03 +0000 |
| commit | 2fc4161a84fe70b5af56de022619970ae669c2f9 (patch) | |
| tree | 93b3e80a504e90bc5b6aa6211a0b576d655a16ea /clang/test/CodeGenCXX | |
| parent | 5117db54fffdec7dedb985e8fd6546a8ef88d658 (diff) | |
| download | bcm5719-llvm-2fc4161a84fe70b5af56de022619970ae669c2f9.tar.gz bcm5719-llvm-2fc4161a84fe70b5af56de022619970ae669c2f9.zip | |
Fix ABI dependent tests by providing an explicit target triple.
Patch by Joey Gouly.
llvm-svn: 164239
Diffstat (limited to 'clang/test/CodeGenCXX')
| -rw-r--r-- | clang/test/CodeGenCXX/compound-literals.cpp | 6 | ||||
| -rw-r--r-- | clang/test/CodeGenCXX/throw-expression-cleanup.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/compound-literals.cpp b/clang/test/CodeGenCXX/compound-literals.cpp index 17a31149e13..5df0ea58766 100644 --- a/clang/test/CodeGenCXX/compound-literals.cpp +++ b/clang/test/CodeGenCXX/compound-literals.cpp @@ -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; } diff --git a/clang/test/CodeGenCXX/throw-expression-cleanup.cpp b/clang/test/CodeGenCXX/throw-expression-cleanup.cpp index 0c41bc65bc3..e1ecd380467 100644 --- a/clang/test/CodeGenCXX/throw-expression-cleanup.cpp +++ b/clang/test/CodeGenCXX/throw-expression-cleanup.cpp @@ -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 { |

