mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
168 B
C
17 lines
168 B
C
|
|
void computed_goto_test()
|
|
{
|
|
void *ptr;
|
|
int i = 0;
|
|
|
|
myLabel1:
|
|
if (++i == 1)
|
|
{
|
|
ptr = &&myLabel1;
|
|
} else {
|
|
ptr = &&myLabel2;
|
|
}
|
|
goto *ptr;
|
|
myLabel2:
|
|
}
|