From d946bda308fa62804ec2007b2c2426e9c90e94c4 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 15 Aug 2011 22:48:14 +0000 Subject: [PATCH] FileCheckize this test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137671 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.50.1