forked from OSchip/llvm-project
Check that bodies and calls but not declarations
are marked nounwind when compiling without -fexceptions. llvm-svn: 49393
This commit is contained in:
parent
5169fa17b5
commit
470ab1a04d
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue