c: Implement C23 nullptr (N3042)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr88870.c
blob81f686bd972cd9b9b3f2c815eef3206f58170160
1 /* PR rtl-optimization/88870 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target nonlocal_goto } */
4 /* { dg-options "-O1 -fexceptions -fnon-call-exceptions -ftrapv -fno-tree-dominator-opts" } */
6 int a, b;
8 void
9 foo (int *x)
11 int c = 0;
13 int d;
14 x = &c;
15 for (;;)
17 x = &d;
18 b = 0;
19 d = c + 1;
20 b = c = 1;
21 ++a;