aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/constructor-default-arg.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-08-05 19:24:33 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-08-05 19:24:33 +0000
commitb5bc3d6a052fcfe027e5de82bc8ef628efdf2d56 (patch)
tree6b1a3dfe5b97e7ea4d9c5645199d8fce6dcb0182 /test/CodeGenCXX/constructor-default-arg.cpp
parent33a3138a0862cafdd9ff1332b834454a79cd2cdc (diff)
Modified test case to use FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/constructor-default-arg.cpp')
-rw-r--r--test/CodeGenCXX/constructor-default-arg.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/CodeGenCXX/constructor-default-arg.cpp b/test/CodeGenCXX/constructor-default-arg.cpp
index c87ec91565..47e0eb6224 100644
--- a/test/CodeGenCXX/constructor-default-arg.cpp
+++ b/test/CodeGenCXX/constructor-default-arg.cpp
@@ -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