summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pch/except-1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pch/except-1.hs')
-rw-r--r--gcc/testsuite/gcc.dg/pch/except-1.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pch/except-1.hs b/gcc/testsuite/gcc.dg/pch/except-1.hs
new file mode 100644
index 000000000..33a893d15
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pch/except-1.hs
@@ -0,0 +1,6 @@
+/* { dg-options "-fexceptions" } */
+extern inline int
+foo(int a)
+{
+ return a + 1;
+}