llvm-6502/test/CFrontend/2008-04-08-NoExceptions.c
Duncan Sands 7497b92c2f 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
2008-04-08 19:31:52 +00:00

8 lines
152 B
C

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