mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C++: test fixes for sign analysis
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -16,4 +16,4 @@ string getASignString(Instruction i) {
|
||||
}
|
||||
|
||||
from Instruction i
|
||||
select i, i.getAST(), strictconcat(string s | s = getASignString(i) | s, " ")
|
||||
select i, strictconcat(string s | s = getASignString(i) | s, " ")
|
||||
@@ -0,0 +1,8 @@
|
||||
int test01(int x, int y) {
|
||||
int b = x > 10 && y < 0;
|
||||
if (b) {
|
||||
return x;
|
||||
} else {
|
||||
return y;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user