mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Testcase for 156990, macro in include directive.
This commit is contained in:
parent
e22a62814b
commit
17656a4e70
1 changed files with 12 additions and 0 deletions
|
@ -185,4 +185,16 @@ public class InclusionTests extends PreprocessorTestsBase {
|
|||
validateEOF();
|
||||
}
|
||||
}
|
||||
|
||||
public void testBug156990() throws Exception {
|
||||
IFile inclusion = importFile( "file.h", "ok" );
|
||||
StringBuffer buffer = new StringBuffer( "#include \"file.h\"" );
|
||||
IFile base = importFile( "base.cpp", buffer.toString() ); //$NON-NLS-1$
|
||||
|
||||
CodeReader reader= new CodeReader(base.getLocation().toString());
|
||||
initializeScanner(reader, ParserLanguage.CPP, ParserMode.COMPLETE_PARSE, new ScannerInfo());
|
||||
validateIdentifier("ok");
|
||||
validateEOF();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue