Check that bodies and calls but not declarations

are marked nounwind when compiling without
-fexceptions.

llvm-svn: 49393
This commit is contained in:
Duncan Sands 2008-04-08 19:31:52 +00:00
parent 5169fa17b5
commit 470ab1a04d
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: %llvmgcc -S -o - %s | grep nounwind | count 2
// RUN: %llvmgcc -S -o - %s | not grep {declare.*nounwind}
void f(void);
void g(void) {
f();
}