mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Test case for include with macro, bug 145270.
This commit is contained in:
parent
3aefe7ea04
commit
a9bd224f49
1 changed files with 16 additions and 0 deletions
|
@ -50,4 +50,20 @@ public class PreprocessorBugsTests extends PreprocessorTestsBase {
|
|||
validateEOF();
|
||||
validateProblemCount(0);
|
||||
}
|
||||
|
||||
// #ifndef PREFIX
|
||||
// #define PREFIX
|
||||
// #endif
|
||||
// #define STRING(x) #x
|
||||
// #define CONCAT(x,y) STRING(x##y)
|
||||
// #define EXPAND(x,y) CONCAT(x,y)
|
||||
// #define PREFIXED(x) EXPAND(PREFIX,x)
|
||||
// #include PREFIXED(bar.h)
|
||||
public void testEmptyStringInMacroInInclusion_Bug145270() throws Exception {
|
||||
initializeScanner();
|
||||
validateEOF();
|
||||
validateProblem(0, IProblem.PREPROCESSOR_INCLUSION_NOT_FOUND, "bar.h");
|
||||
validateProblemCount(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue