diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java index d38bb54d470..2d0fd3de725 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java @@ -3689,4 +3689,17 @@ public class AST2Tests extends AST2BaseTest { for (int i = 0; i < LANGUAGES.length; i++) parseAndCheckBindings( buffer.toString(), LANGUAGES[i], true); } + + public void testBug186018() throws Exception { + String code = + "int main() { \n" + + " switch(1) { \n" + + " case 1 : \n" + + " case 2 : \n" + + " printf(\"pantera rules\"); \n" + + " } \n" + + "}\n"; + + parseAndCheckBindings(code, ParserLanguage.C); + } }