summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/build.properties2
-rw-r--r--src/tests/org/anarres/cpp/ErrorTestCase.java6
2 files changed, 7 insertions, 1 deletions
diff --git a/etc/build.properties b/etc/build.properties
index daad657..a5b92cf 100644
--- a/etc/build.properties
+++ b/etc/build.properties
@@ -1,4 +1,4 @@
-global.version = 1.2.3
+global.version = 1.2.4
global.name = anarres-cpp
global.dir.arch = ${global.dir.root}/arch
diff --git a/src/tests/org/anarres/cpp/ErrorTestCase.java b/src/tests/org/anarres/cpp/ErrorTestCase.java
index ad042be..24bdf61 100644
--- a/src/tests/org/anarres/cpp/ErrorTestCase.java
+++ b/src/tests/org/anarres/cpp/ErrorTestCase.java
@@ -49,6 +49,12 @@ public class ErrorTestCase extends BaseTestCase {
assertNotNull("CPP has listener", p.getListener());
assertTrue(testError(p));
assertTrue("Listener has errors", pl.getErrors() > 0);
+
+ /* Without CSYNTAX, works happily. */
+ sl = new StringLexerSource(input, true);
+ p = new Preprocessor();
+ p.addInput(sl);
+ assertTrue(testError(p));
}
public void testErrors() throws Exception {