diff options
| author | Eric Christopher <echristo@apple.com> | 2011-08-15 22:48:14 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-08-15 22:48:14 +0000 |
| commit | d9afc5c749aba22ac27b4708cc86b3737ed9d670 (patch) | |
| tree | 1a794a75f48c6bf41c16f2aef1b4029be8ce002a | |
| parent | 2c7f4f133f1a224ffc5837560ff1ec96864226df (diff) | |
| download | bcm5719-llvm-d9afc5c749aba22ac27b4708cc86b3737ed9d670.tar.gz bcm5719-llvm-d9afc5c749aba22ac27b4708cc86b3737ed9d670.zip | |
FileCheckize this test.
llvm-svn: 137671
| -rw-r--r-- | clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp b/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp index 708920792bf..8361680546f 100644 --- a/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp +++ b/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp @@ -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 |

