mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
13 lines
188 B
C++
13 lines
188 B
C++
void f() {
|
|
int i = 10;
|
|
|
|
for (int i = 0; i < 10; i++) { //the loop counter hides the variable
|
|
...
|
|
}
|
|
|
|
{
|
|
int i = 12; //this variable hides the variable in the outer block
|
|
...
|
|
}
|
|
}
|