mirror of
https://github.com/github/codeql.git
synced 2026-06-15 18:01:10 +02:00
11 lines
126 B
C++
11 lines
126 B
C++
int f() {
|
|
int x = x; // BAD: undefined behavior occurs here
|
|
x = 0;
|
|
return x;
|
|
}
|
|
|
|
int g() {
|
|
int x = 0; // GOOD
|
|
return x;
|
|
}
|