c: Implement C23 nullptr (N3042)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr103845.c
blob45ab518d07c9a9c0bbbc18bf6c65d67d13c6b927
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fharden-compares -fno-ipa-pure-const" } */
4 int
5 baz (void);
7 __attribute__ ((returns_twice)) void
8 bar (void)
12 int
13 quux (int y, int z)
15 return (y || z >= 0) ? y : z;
18 int
19 foo (int x)
21 int a = 0, b = x == a;
23 bar ();
25 if (!!baz () < quux (b, a))
26 ++x;
28 return x;