mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Testcase for bug 210344.
This commit is contained in:
parent
7788841cb3
commit
8db78a8929
1 changed files with 17 additions and 0 deletions
|
@ -32,5 +32,22 @@ public class PreprocessorBugsTests extends PreprocessorTestsBase {
|
||||||
initializeScanner();
|
initializeScanner();
|
||||||
validateEOF();
|
validateEOF();
|
||||||
validateProblem(0, IProblem.PREPROCESSOR_INCLUSION_NOT_FOUND, "regxag4.sfr");
|
validateProblem(0, IProblem.PREPROCESSOR_INCLUSION_NOT_FOUND, "regxag4.sfr");
|
||||||
|
validateProblemCount(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// #define FUNKY(x) __##x##__
|
||||||
|
// #define __foo__ 127
|
||||||
|
//
|
||||||
|
// #if FUNKY(foo) == 0x7f
|
||||||
|
// #define MSG "hello"
|
||||||
|
// #else
|
||||||
|
// #define MSG "goodbye"
|
||||||
|
// #endif
|
||||||
|
// MSG
|
||||||
|
public void testTokenPaste_Bug210344() throws Exception {
|
||||||
|
initializeScanner();
|
||||||
|
validateString("hello");
|
||||||
|
validateEOF();
|
||||||
|
validateProblemCount(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue