[llvm-commits] [llvm] r49393 - /llvm/trunk/test/CFrontend/2008-04-08-NoExceptions.c

Duncan Sands baldrick at free.fr
Tue Apr 8 12:31:52 PDT 2008


Author: baldrick
Date: Tue Apr  8 14:31:52 2008
New Revision: 49393

URL: http://llvm.org/viewvc/llvm-project?rev=49393&view=rev
Log:
Check that bodies and calls but not declarations
are marked nounwind when compiling without
-fexceptions.

Added:
    llvm/trunk/test/CFrontend/2008-04-08-NoExceptions.c

Added: llvm/trunk/test/CFrontend/2008-04-08-NoExceptions.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2008-04-08-NoExceptions.c?rev=49393&view=auto

==============================================================================
--- llvm/trunk/test/CFrontend/2008-04-08-NoExceptions.c (added)
+++ llvm/trunk/test/CFrontend/2008-04-08-NoExceptions.c Tue Apr  8 14:31:52 2008
@@ -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();
+}





More information about the llvm-commits mailing list