[cfe-commits] r137671 - /cfe/trunk/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp

Eric Christopher echristo at apple.com
Mon Aug 15 15:48:14 PDT 2011


Author: echristo
Date: Mon Aug 15 17:48:14 2011
New Revision: 137671

URL: http://llvm.org/viewvc/llvm-project?rev=137671&view=rev
Log:
FileCheckize this test.

Modified:
    cfe/trunk/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp

Modified: cfe/trunk/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp?rev=137671&r1=137670&r2=137671&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp Mon Aug 15 17:48:14 2011
@@ -1,8 +1,15 @@
-// RUN: %clang_cc1 -fexceptions -emit-llvm %s -o - | grep nounwind | count 4
+// RUN: %clang_cc1 -fexceptions -emit-llvm %s -o - | FileCheck %s
 int c(void) __attribute__((const));
 int p(void) __attribute__((pure));
 int t(void);
 
+// CHECK: define i32 @_Z1fv() {
 int f(void) {
+  // CHECK: call i32 @_Z1cv() nounwind readnone
+  // CHECK: call i32 @_Z1pv() nounwind readonly
   return c() + p() + t();
 }
+
+// CHECK: declare i32 @_Z1cv() nounwind readnone
+// CHECK: declare i32 @_Z1pv() nounwind readonly
+// CHECK-NOT: declare i32 @_Z1tv() nounwind





More information about the cfe-commits mailing list