| 1 |
extern void abort(void); |
| 2 |
|
| 3 |
void test(int *ptr) |
| 4 |
{ |
| 5 |
int i = 1; |
| 6 |
goto useless; |
| 7 |
if (0) |
| 8 |
{ |
| 9 |
useless: |
| 10 |
i = 0; |
| 11 |
} |
| 12 |
else |
| 13 |
i = 1; |
| 14 |
*ptr = i; |
| 15 |
} |
| 16 |
|
| 17 |
int main() |
| 18 |
{ |
| 19 |
int i = 1; |
| 20 |
test(&i); |
| 21 |
if (i) |
| 22 |
abort (); |
| 23 |
return 0; |
| 24 |
} |
| 25 |
|