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