diff options
| author | Duncan Sands <baldrick@free.fr> | 2008-04-08 19:31:52 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2008-04-08 19:31:52 +0000 |
| commit | 470ab1a04dc20f67937da6250921168729e83c0e (patch) | |
| tree | 9b8b598ced16a2b761d87d4af13372e8b28d3415 | |
| parent | 5169fa17b595a04c972ec4d0ca94343a88be1c9e (diff) | |
| download | bcm5719-llvm-470ab1a04dc20f67937da6250921168729e83c0e.tar.gz bcm5719-llvm-470ab1a04dc20f67937da6250921168729e83c0e.zip | |
Check that bodies and calls but not declarations
are marked nounwind when compiling without
-fexceptions.
llvm-svn: 49393
| -rw-r--r-- | llvm/test/CFrontend/2008-04-08-NoExceptions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2008-04-08-NoExceptions.c b/llvm/test/CFrontend/2008-04-08-NoExceptions.c new file mode 100644 index 00000000000..257fee23b06 --- /dev/null +++ b/llvm/test/CFrontend/2008-04-08-NoExceptions.c @@ -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(); +} |

