summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2008-04-08-NoExceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2008-04-08-NoExceptions.c')
-rw-r--r--clang/test/CodeGen/2008-04-08-NoExceptions.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2008-04-08-NoExceptions.c b/clang/test/CodeGen/2008-04-08-NoExceptions.c
new file mode 100644
index 0000000..6d5d20f
--- /dev/null
+++ b/clang/test/CodeGen/2008-04-08-NoExceptions.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+
+void f(void);
+void g(void) {
+ // CHECK: define void @g() nounwind
+ // CHECK-NOT: call void @f() nounwind
+ f();
+}
+
+// CHECK-NOT: declare void @f() nounwind