mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 21:35:40 +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();
|
validateEOF();
|
||||||
validateProblemCount(0);
|
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