mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Fixed bad test.
This commit is contained in:
parent
4e7213552c
commit
fb287fa5a4
1 changed files with 1 additions and 1 deletions
|
@ -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$
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue