Skip to content

Commit 2dad62a

Browse files
committed
CPP: Additional test cases.
1 parent 4a8b4b3 commit 2dad62a

File tree

1 file changed

+9
-1
lines changed
  • cpp/ql/test/query-tests/Documentation/CommentedOutCode

1 file changed

+9
-1
lines changed

cpp/ql/test/query-tests/Documentation/CommentedOutCode/test2.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,12 @@ void myFunction();
104104
#endif // #ifdef MYMACRO2
105105
#endif // #ifdef MYMACRO1
106106

107-
#include "config.h"
107+
#include "config.h" // #include "config2.h"
108+
109+
#ifdef MYMACRO
110+
111+
// ...
112+
113+
#endif /* #ifdef MYMACRO */
114+
115+
#error "error" /* #ifdef MYMACRO */

0 commit comments

Comments
 (0)