Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-unreachable-4.c
blob90bc99cbe2dd5ccdf393f0f7b2010486448508bf
1 /* Check that this valid code doesn't ICE. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 void
5 g (int a, int b, int c, int d)
7 if (d)
9 ((void)
10 (!(a && b && c) ? __builtin_unreachable (), 0 : 0));
12 ((void)
13 (!(a && b && c) ? __builtin_unreachable (), 0 : 0));