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 | d946bda308fa62804ec2007b2c2426e9c90e94c4 (patch) | |
tree | 64d07ca4bbfae7ad9785d86f84bdb48fbeaeca71 | |
parent | 427964e15f1b9595659cea3fcb4dd808a00f37b5 (diff) |
FileCheckize this test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137671 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp b/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp index 708920792b..8361680546 100644 --- a/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp +++ b/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 |