Modified test case to use FileCheck.

llvm-svn: 78231
This commit is contained in:
Fariborz Jahanian 2009-08-05 19:24:33 +00:00
parent 44b83eea30
commit daeb7d51d4
1 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,8 @@
// RUN: clang-cc %s -emit-llvm -o %t &&
// RUN: grep 'call void @_ZN1XC1ERK1Xiii' %t | count 3
// RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s &&
// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s &&
// RUN: clang-cc -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s &&
// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s &&
// RUN: true
extern "C" int printf(...);
@ -28,3 +31,9 @@ int main()
X c = b;
X d(a, 5, 6);
}
// CHECK-LP64: call __ZN1XC1ERK1Xiii
// CHECK-LP64: call __ZN1XC1ERK1Xiii
// CHECK-LP64: call __ZN1XC1ERK1Xiii
// CHECK-LP32: call L__ZN1XC1ERK1Xiii
// CHECK-LP32: call L__ZN1XC1ERK1Xiii
// CHECK-LP32: call L__ZN1XC1ERK1Xiii