Skip to content

Commit ceceee1

Browse files
committed
C++: Add test for mixed implicit/explicit function declarations
1 parent d88a674 commit ceceee1

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
| implicit2.c:1:7:1:7 | g | file://:0:0:0:0 | float |
2+
| implicit2.c:1:7:1:7 | g | file://:0:0:0:0 | int |
3+
| implicit.c:1:6:1:6 | f | file://:0:0:0:0 | void |
4+
| implicit.c:3:5:3:5 | g | file://:0:0:0:0 | float |
5+
| implicit.c:3:5:3:5 | g | file://:0:0:0:0 | int |
6+
| implicit.cpp:3:6:3:6 | f | file://:0:0:0:0 | void |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import cpp
2+
3+
from Function fn
4+
where fn.fromSource()
5+
select fn, fn.getType()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
float g();

0 commit comments

Comments
 (0)