Check that bodies and calls but not declarations

are marked nounwind when compiling without
-fexceptions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2008-04-08 19:31:52 +00:00
parent c8abfdec84
commit 7497b92c2f

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();
}