diff options
author | Olly Betts <olly@survex.com> | 2015-01-14 16:00:40 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2015-01-14 16:00:40 +1300 |
commit | a2f803bb5a1805ac5c22a38dff17bf3d8bafe0bf (patch) | |
tree | c9b4c7ac674b9b94c3d4834776aee59a5f745450 /Examples | |
parent | 0dd685bad224ea2a586340b46ea5fa25e8d9422c (diff) | |
download | swig-a2f803bb5a1805ac5c22a38dff17bf3d8bafe0bf.tar.gz |
Add explanatory comment to pp_unknowndirective2.i
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/test-suite/errors/pp_unknowndirective2.i | 2 | ||||
-rw-r--r-- | Examples/test-suite/errors/pp_unknowndirective2.stderr | 2 |
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 |