Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55010d0

Browse files
author
Dave Bartolomeo
authored
Merge pull request #2315 from geoffw0/errtest
CPP: Add a quick test of ErroneousType.
2 parents e1467a7 + 32b5501 commit 55010d0

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| file://:0:0:0:0 | <error expr> | file://:0:0:0:0 | error |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import cpp
2+
3+
from Expr e, Type t
4+
where t = e.getType()
5+
select e, t
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// semmle-extractor-options: --expect_errors
2+
3+
int &intref = 0; // ErrorExpr with ErroneousType

0 commit comments

Comments
 (0)