From 1300d696f46b058242b3fb3149a668e99aaca29a Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Fri, 30 May 2008 14:00:46 +0000 Subject: [PATCH] testcase for bug 84268 --- .../core/parser/tests/scanner/PreprocessorTests.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/scanner/PreprocessorTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/scanner/PreprocessorTests.java index 973e0d7ac83..ad038861148 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/scanner/PreprocessorTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/scanner/PreprocessorTests.java @@ -1322,4 +1322,16 @@ public class PreprocessorTests extends PreprocessorTestsBase { validateEOF(); validateProblemCount(0); } + + // #define hash_hash # ## # + // #define mkstr(a) # a + // #define in_between(a) mkstr(a) + // #define join(c, d) in_between(c hash_hash d) + // join(x, y) + public void testC99_6_10_3_3_4_Bug84268() throws Exception { + initializeScanner(); + validateString("x ## y"); + validateEOF(); + validateProblemCount(0); + } }