CPP: Add a test of ErroneousType.

This commit is contained in:
Geoffrey White
2019-11-13 18:53:43 +00:00
parent 9c9744620e
commit 32b5501177
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1 @@
| file://:0:0:0:0 | <error expr> | file://:0:0:0:0 | error |

View File

@@ -0,0 +1,5 @@
import cpp
from Expr e, Type t
where t = e.getType()
select e, t

View File

@@ -0,0 +1,3 @@
// semmle-extractor-options: --expect_errors
int &intref = 0; // ErrorExpr with ErroneousType