From fb287fa5a4b7817b41caf62be3dcc7819eded153 Mon Sep 17 00:00:00 2001 From: John Camelon Date: Thu, 10 Feb 2005 16:17:36 +0000 Subject: [PATCH] Fixed bad test. --- .../eclipse/cdt/core/parser/tests/ast2/DOMLocationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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