summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Examples/test-suite/errors/pp_unknowndirective2.i2
-rw-r--r--Examples/test-suite/errors/pp_unknowndirective2.stderr2
2 files changed, 3 insertions, 1 deletions
diff --git a/Examples/test-suite/errors/pp_unknowndirective2.i b/Examples/test-suite/errors/pp_unknowndirective2.i
index c66443d93..889e6c5b2 100644
--- a/Examples/test-suite/errors/pp_unknowndirective2.i
+++ b/Examples/test-suite/errors/pp_unknowndirective2.i
@@ -2,6 +2,8 @@
#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
diff --git a/Examples/test-suite/errors/pp_unknowndirective2.stderr b/Examples/test-suite/errors/pp_unknowndirective2.stderr
index 8426dd17f..8244c7d0d 100644
--- a/Examples/test-suite/errors/pp_unknowndirective2.stderr
+++ b/Examples/test-suite/errors/pp_unknowndirective2.stderr
@@ -1 +1 @@
-pp_unknowndirective2.i:5: Error: Unknown SWIG preprocessor directive: elsif
+pp_unknowndirective2.i:7: Error: Unknown SWIG preprocessor directive: elsif