gcc/testsuite/gcc.c-torture/compile/pr45059.c
raw| 1 | /* PR tree-optimization/45059 */ |
| 2 | |
| 3 | typedef unsigned int T; |
| 4 | extern void foo (signed char *, int); |
| 5 | |
| 6 | static signed char a; |
| 7 | static T b[1] = { -1 }; |
| 8 | static unsigned char c; |
| 9 | |
| 10 | static inline short int |
| 11 | bar (short v) |
| 12 | { |
| 13 | c |= a < b[0]; |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | main () |
| 19 | { |
| 20 | signed char *e = &a; |
| 21 | foo (e, bar (bar (c))); |
| 22 | return 0; |
| 23 | } |