Skip to content

Commit 0a7d9db

Browse files
committed
C++: Add example described in ODASA-640.
1 parent e6d35d3 commit 0a7d9db

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

cpp/ql/test/library-tests/declarationEntry/declarationEntry/declarationEntry.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@
2727
| declarationEntry.cpp:31:4:31:19 | myMemberVariable | declarationEntry.cpp:31:4:31:19 | definition of myMemberVariable | 1 | 1 |
2828
| declarationEntry.cpp:34:22:34:28 | mtc_int | declarationEntry.cpp:34:22:34:28 | definition of mtc_int | 1 | 1 |
2929
| declarationEntry.cpp:35:24:35:32 | mtc_short | declarationEntry.cpp:35:24:35:32 | definition of mtc_short | 1 | 1 |
30+
| macro.c:2:1:2:3 | foo | macro.c:2:1:2:3 | declaration of foo | 1 | 1 |
31+
| macro.c:4:5:4:8 | main | macro.c:4:5:4:8 | definition of main | 1 | 1 |

cpp/ql/test/library-tests/declarationEntry/declarationEntry/fde.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
1111
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
1212
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
13+
| macro.c:2:1:2:3 | declaration of foo | |
14+
| macro.c:4:5:4:8 | definition of main | |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#define Foo static void foo()
2+
Foo;
3+
4+
int main()
5+
{
6+
return 0;
7+
}

0 commit comments

Comments
 (0)