* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr50380.c
blob3f03cbbc31f6e09aa5c3f50a55cb8c0c68a53e38
1 __attribute__ ((__noreturn__)) extern void fail (void);
3 char x;
5 /* This used to get stuck in an infinite loop in find_comparison_args
6 when compiling this function for MIPS at -O2. */
8 void foo (const unsigned char y)
10 ((void) (__builtin_expect((!! y == y), 1) ? 0 : (fail (), 0)));
11 x = ! y;
14 /* This used to similarly get stuck when compiling for PowerPC at -O2. */
16 int foo2 (int arg)
18 if (arg != !arg)
19 fail ();
20 if (arg)
21 fail ();