summaryrefslogtreecommitdiff
path: root/Examples/test-suite/errors/pp_unknowndirective2.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/errors/pp_unknowndirective2.i')
-rw-r--r--Examples/test-suite/errors/pp_unknowndirective2.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/Examples/test-suite/errors/pp_unknowndirective2.i b/Examples/test-suite/errors/pp_unknowndirective2.i
new file mode 100644
index 000000000..889e6c5b2
--- /dev/null
+++ b/Examples/test-suite/errors/pp_unknowndirective2.i
@@ -0,0 +1,11 @@
+%module xxx
+
+#ifdef FOO
+long long i;
+/* Check we get an error for an unknown directive (this should be #elif).
+ * Unknown directives were silently ignored by SWIG < 3.0.3. */
+#elsif defined(BAR)
+long i;
+#else
+int i;
+#endif