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); + } }