Check that pure/const functions are marked nounwind.

llvm-svn: 70875
This commit is contained in:
Duncan Sands 2009-05-04 16:47:11 +00:00
parent 49a844e1a6
commit b88227ef4c
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// RUN: %llvmgxx -S -emit-llvm %s -o - | grep nounwind | count 4
int c(void) __attribute__((const));
int p(void) __attribute__((pure));
int t(void);
int f(void) {
return c() + p() + t();
}