[cfe-commits] r78231 - /cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Aug 5 12:24:35 PDT 2009


Author: fjahanian
Date: Wed Aug  5 14:24:33 2009
New Revision: 78231

URL: http://llvm.org/viewvc/llvm-project?rev=78231&view=rev
Log:
Modified test case to use FileCheck.


Modified:
    cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp

Modified: cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp?rev=78231&r1=78230&r2=78231&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp Wed Aug  5 14:24:33 2009
@@ -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 @@
 	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





More information about the cfe-commits mailing list