mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Disable inactive code parsing after string literals, bug 281745.
This commit is contained in:
parent
f8a0d51a32
commit
b59697f128
1 changed files with 21 additions and 0 deletions
|
@ -254,4 +254,25 @@ public class InactiveCodeTests extends PreprocessorTestsBase {
|
|||
validateEOF();
|
||||
validateProblemCount(0);
|
||||
}
|
||||
|
||||
// "part1"
|
||||
// #ifdef SOME_OPTION
|
||||
// "part2"
|
||||
// #else
|
||||
// "part3"
|
||||
// #endif
|
||||
//
|
||||
// "part4"
|
||||
// #ifndef SOME_OPTION
|
||||
// "part5"
|
||||
// #else
|
||||
// "part6"
|
||||
// #endif
|
||||
public void testStringLiteralConcatenation_281745() throws Exception {
|
||||
initializeScanner();
|
||||
validateString("part1part3part4part5");
|
||||
validateEOF();
|
||||
validateProblemCount(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue