C++: Add test for mixed implicit/explicit function declarations

This commit is contained in:
Calum Grant
2024-10-16 13:46:06 +01:00
parent d88a674a15
commit ceceee1947
3 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
| implicit2.c:1:7:1:7 | g | file://:0:0:0:0 | float |
| implicit2.c:1:7:1:7 | g | file://:0:0:0:0 | int |
| implicit.c:1:6:1:6 | f | file://:0:0:0:0 | void |
| implicit.c:3:5:3:5 | g | file://:0:0:0:0 | float |
| implicit.c:3:5:3:5 | g | file://:0:0:0:0 | int |
| implicit.cpp:3:6:3:6 | f | file://:0:0:0:0 | void |

View File

@@ -0,0 +1,5 @@
import cpp
from Function fn
where fn.fromSource()
select fn, fn.getType()

View File

@@ -0,0 +1 @@
float g();