mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
CPP: Add a test of RoutineType.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
using myRoutineType = int(int);
|
||||
|
||||
myRoutineType *fp = 0;
|
||||
@@ -0,0 +1 @@
|
||||
| routinetype.cpp:2:7:2:19 | myRoutineType | file://:0:0:0:0 | ..()(..) | RoutineType |
|
||||
5
cpp/ql/test/library-tests/functions/routinetype/types.ql
Normal file
5
cpp/ql/test/library-tests/functions/routinetype/types.ql
Normal file
@@ -0,0 +1,5 @@
|
||||
import cpp
|
||||
|
||||
from TypedefType t, Type u
|
||||
where u = t.getBaseType()
|
||||
select t, u, concat(u.getAQlClass(), ", ")
|
||||
Reference in New Issue
Block a user