1
0
Fork 0
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:
Markus Schorn 2007-11-23 13:55:12 +00:00
parent 3aefe7ea04
commit a9bd224f49

View file

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