gcc/testsuite/gcc.c-torture/execute/20020611-1.c
raw| 1 | /* PR target/6997. Missing (set_attr "cc" "none") in sleu pattern in |
| 2 | cris.md. Testcase from [email protected]. */ |
| 3 | |
| 4 | void abort (void); |
| 5 | void exit (int); |
| 6 | |
| 7 | int p; |
| 8 | int k; |
| 9 | unsigned int n; |
| 10 | |
| 11 | void x () |
| 12 | { |
| 13 | unsigned int h; |
| 14 | |
| 15 | h = n <= 30; |
| 16 | if (h) |
| 17 | p = 1; |
| 18 | else |
| 19 | p = 0; |
| 20 | |
| 21 | if (h) |
| 22 | k = 1; |
| 23 | else |
| 24 | k = 0; |
| 25 | } |
| 26 | |
| 27 | unsigned int n = 30; |
| 28 | |
| 29 | int |
| 30 | main (void) |
| 31 | { |
| 32 | x (); |
| 33 | if (p != 1 || k != 1) |
| 34 | abort (); |
| 35 | exit (0); |
| 36 | } |