mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
C++: Add example described in ODASA-640.
This commit is contained in:
@@ -27,3 +27,5 @@
|
||||
| declarationEntry.cpp:31:4:31:19 | myMemberVariable | declarationEntry.cpp:31:4:31:19 | definition of myMemberVariable | 1 | 1 |
|
||||
| declarationEntry.cpp:34:22:34:28 | mtc_int | declarationEntry.cpp:34:22:34:28 | definition of mtc_int | 1 | 1 |
|
||||
| declarationEntry.cpp:35:24:35:32 | mtc_short | declarationEntry.cpp:35:24:35:32 | definition of mtc_short | 1 | 1 |
|
||||
| macro.c:2:1:2:3 | foo | macro.c:2:1:2:3 | declaration of foo | 1 | 1 |
|
||||
| macro.c:4:5:4:8 | main | macro.c:4:5:4:8 | definition of main | 1 | 1 |
|
||||
|
||||
@@ -10,3 +10,5 @@
|
||||
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
|
||||
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
|
||||
| declarationEntry.cpp:28:7:28:7 | declaration of operator= | |
|
||||
| macro.c:2:1:2:3 | declaration of foo | |
|
||||
| macro.c:4:5:4:8 | definition of main | |
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#define Foo static void foo()
|
||||
Foo;
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user