]> granicus.if.org Git - clang/commitdiff
Port test over to FileCheck.
authorAnders Carlsson <andersca@mac.com>
Thu, 8 Oct 2009 17:22:47 +0000 (17:22 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 8 Oct 2009 17:22:47 +0000 (17:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83558 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/global-init.cpp

index 6ffad0bb3b9ac18fac0b67a56460b17e5ccee99b..ea6b1e7eb62b995801fda0dc3eb9b3a549a8cba0 100644 (file)
@@ -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;