diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationTests.java index 686d66ffbf2..0f62ca392d9 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationTests.java @@ -352,7 +352,7 @@ public class DOMLocationTests extends AST2BaseTest { String code = "namespace A {\n extern \"C\" int g();\n }"; //$NON-NLS-1$ IASTTranslationUnit tu = parse( code, ParserLanguage.CPP ); ICPPASTLinkageSpecification spec = (ICPPASTLinkageSpecification)((ICPPASTNamespaceDefinition)tu.getDeclarations()[0]).getDeclarations()[0]; - assertSoleLocation( spec, code.indexOf( "extern \"C\""), "extern \"C\"".length() ); //$NON-NLS-1$ //$NON-NLS-2$ + assertSoleLocation( spec, code.indexOf( "extern \"C\""), "extern \"C\" int g();".length() ); //$NON-NLS-1$ //$NON-NLS-2$ } } \ No newline at end of file