Skip to content

Commit 3ead154

Browse files
committed
C++: Add VariableDeclarationEntry test to library-tests/variables/global
1 parent fb62ce6 commit 3ead154

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
| a.c:4:5:4:6 | definition of is | array of {int} | 1 |
2+
| a.h:2:12:2:13 | declaration of is | array of 4 {int} | 1 |
3+
| file://:0:0:0:0 | definition of fp_offset | unsigned int | 1 |
4+
| file://:0:0:0:0 | definition of gp_offset | unsigned int | 1 |
5+
| file://:0:0:0:0 | definition of overflow_arg_area | pointer to {void} | 1 |
6+
| file://:0:0:0:0 | definition of reg_save_area | pointer to {void} | 1 |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import cpp
2+
3+
from VariableDeclarationEntry vd, Type t
4+
where t = vd.getType()
5+
select vd, t.explain(), count(Type u | u = vd.getType())

0 commit comments

Comments
 (0)