aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2003-08-18-SigSetJmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2003-08-18-SigSetJmp.c')
-rw-r--r--test/FrontendC/2003-08-18-SigSetJmp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FrontendC/2003-08-18-SigSetJmp.c b/test/FrontendC/2003-08-18-SigSetJmp.c
new file mode 100644
index 0000000..b7f4553
--- /dev/null
+++ b/test/FrontendC/2003-08-18-SigSetJmp.c
@@ -0,0 +1,10 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
+
+#include <setjmp.h>
+
+sigjmp_buf B;
+int foo() {
+ sigsetjmp(B, 1);
+ bar();
+}