[cfe-commits] r83558 - /cfe/trunk/test/CodeGenCXX/global-init.cpp
Anders Carlsson
andersca at mac.com
Thu Oct 8 10:22:47 PDT 2009
Author: andersca
Date: Thu Oct 8 12:22:47 2009
New Revision: 83558
URL: http://llvm.org/viewvc/llvm-project?rev=83558&view=rev
Log:
Port test over to FileCheck.
Modified:
cfe/trunk/test/CodeGenCXX/global-init.cpp
Modified: cfe/trunk/test/CodeGenCXX/global-init.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/global-init.cpp?rev=83558&r1=83557&r2=83558&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/global-init.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/global-init.cpp Thu Oct 8 12:22:47 2009
@@ -1,10 +1,10 @@
-// RUN: clang-cc -triple=x86_64-apple-darwin9 -emit-llvm %s -o %t &&
-// RUN: grep "call void @_ZN1AC1Ev" %t | count 1 &&
-// RUN: grep "call i32 @__cxa_atexit(void (i8\*)\* bitcast (void (%.truct.A\*)\* @_ZN1AD1Ev to void (i8\*)\*), i8\* getelementptr inbounds (%.truct.A\* @a, i32 0, i32 0), i8\* bitcast (i8\*\* @__dso_handle to i8\*))" %t | count 1
+// RUN: clang-cc -triple=x86_64-apple-darwin9 -emit-llvm %s -o - |FileCheck %s
struct A {
A();
~A();
};
+// CHECK: call void @_ZN1AC1Ev
+// CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.A*)* @_ZN1AD1Ev to void (i8*)*), i8* getelementptr inbounds (%struct.A* @a, i32 0, i32 0), i8* bitcast (i8** @__dso_handle to i8*))
A a;
More information about the cfe-commits
mailing list