mirror of
https://github.com/github/codeql.git
synced 2026-03-03 22:33:42 +01:00
C++: Uncomment preprocessor test cases and add addition #if test case
Note that the new test case shows that line splicing is not correctly handled in the case of `#if`.
This commit is contained in:
@@ -68,3 +68,10 @@ int templateClassContext<T> :: val = MACRO_TEMPLATECLASSCONTEXT_REFERENCED;
|
||||
|
||||
#define INSTANTIATION
|
||||
templateClassContext<int> tcci;
|
||||
|
||||
#define BAR
|
||||
|
||||
#if defined(BAR) && \
|
||||
defined(BAR)
|
||||
#warning BAR defined
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user