1
0
Fork 0
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:
Markus Schorn 2007-11-16 12:34:35 +00:00
parent e22a62814b
commit 17656a4e70

View file

@ -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();
}
}