From: Eric Christopher Date: Mon, 15 Aug 2011 22:48:14 +0000 (+0000) Subject: FileCheckize this test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d946bda308fa62804ec2007b2c2426e9c90e94c4;p=clang FileCheckize this test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137671 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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