diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-03 14:16:22 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-03 14:16:22 +0000 |
| commit | bc81c072388e99da1aeb32a6745bf638d17b6381 (patch) | |
| tree | 750f04a6ce87d7eb6f65b011e1a25034ad068cd2 | |
| parent | a1226fc722e7b231ad3b22c54e58dd723e5bedf0 (diff) | |
| download | bcm5719-llvm-bc81c072388e99da1aeb32a6745bf638d17b6381.tar.gz bcm5719-llvm-bc81c072388e99da1aeb32a6745bf638d17b6381.zip | |
Check IR in this test.
llvm-svn: 196278
| -rw-r--r-- | clang/test/CodeGenCXX/cast-conversion.cpp | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/clang/test/CodeGenCXX/cast-conversion.cpp b/clang/test/CodeGenCXX/cast-conversion.cpp index 5565f654843..ce8f82089e1 100644 --- a/clang/test/CodeGenCXX/cast-conversion.cpp +++ b/clang/test/CodeGenCXX/cast-conversion.cpp @@ -1,8 +1,7 @@ -// REQUIRES: x86-registered-target,x86-64-registered-target -// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -S %s -o %t-64.s -// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s -// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -S %s -o %t-32.s -// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \ +// RUN: FileCheck %s +// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \ +// RUN: FileCheck %s struct A { A(int); @@ -18,16 +17,9 @@ int main () { static_cast<B>(10); } -// CHECK-LP64: callq __ZN1AC1Ei -// CHECK-LP64: callq __ZN1BC1E1A -// CHECK-LP64: callq __ZN1AC1Ei -// CHECK-LP64: callq __ZN1BC1E1A -// CHECK-LP64: callq __ZN1AC1Ei -// CHECK-LP64: callq __ZN1BC1E1A - -// CHECK-LP32: calll L__ZN1AC1Ei -// CHECK-LP32: calll L__ZN1BC1E1A -// CHECK-LP32: calll L__ZN1AC1Ei -// CHECK-LP32: calll L__ZN1BC1E1A -// CHECK-LP32: calll L__ZN1AC1Ei -// CHECK-LP32: calll L__ZN1BC1E1A +// CHECK: call void @_ZN1AC1Ei +// CHECK: call void @_ZN1BC1E1A +// CHECK: call void @_ZN1AC1Ei +// CHECK: call void @_ZN1BC1E1A +// CHECK: call void @_ZN1AC1Ei +// CHECK: call void @_ZN1BC1E1A |

