diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/org/anarres/cpp/ErrorTestCase.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |