Skip to content

Commit 9224113

Browse files
committed
CPP: Add test cases.
1 parent f7dda1b commit 9224113

File tree

1 file changed

+16
-0
lines changed
  • cpp/ql/test/query-tests/Documentation/CommentedOutCode

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,19 @@
3939
// int myFunction() const { return myValue; }
4040

4141
// int myFunction() const noexcept { return myValue; }
42+
43+
// #define MYMACRO
44+
45+
// #include "include.h"
46+
47+
/*
48+
#ifdef
49+
void myFunction();
50+
#endif
51+
*/
52+
53+
// define some constants
54+
55+
// don't #include anything here
56+
57+
// #hashtag

0 commit comments

Comments
 (0)