mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
int x;
|
||||
|
||||
void Void1()
|
||||
{
|
||||
x = 0;
|
||||
x = 1;
|
||||
x = 2;
|
||||
x = 3;
|
||||
x = 4;
|
||||
x = 5;
|
||||
x = 6;
|
||||
}
|
||||
|
||||
void Void2()
|
||||
{
|
||||
x = 0;
|
||||
x = 1;
|
||||
x = 2;
|
||||
x = 3;
|
||||
x = 4;
|
||||
x = 5;
|
||||
x = 6;
|
||||
}
|
||||
|
||||
int Int1()
|
||||
{
|
||||
x = 0;
|
||||
++x;
|
||||
++x;
|
||||
--x;
|
||||
--x;
|
||||
++x;
|
||||
--x;
|
||||
return x;
|
||||
}
|
||||
|
||||
int Int2()
|
||||
{
|
||||
x = 0;
|
||||
++x;
|
||||
++x;
|
||||
--x;
|
||||
--x;
|
||||
++x;
|
||||
--x;
|
||||
return x;
|
||||
}
|
||||
Reference in New Issue
Block a user