gcc/testsuite/gcc.c-torture/execute/20090219-1.c
raw| 1 | /* On ARM, BAR used to get a bogus number in E due to stack |
| 2 | misalignment. */ |
| 3 | |
| 4 | extern void abort (void); |
| 5 | extern void exit (int); |
| 6 | |
| 7 | void |
| 8 | foo (void) |
| 9 | { |
| 10 | int f = 0; |
| 11 | |
| 12 | void bar (int a, int b, int c, int d, int e) |
| 13 | { |
| 14 | if (e != 0) |
| 15 | { |
| 16 | f = 1; |
| 17 | abort (); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | bar (0, 0, 0, 0, 0); |
| 22 | } |
| 23 | |
| 24 | int |
| 25 | main (void) |
| 26 | { |
| 27 | foo (); |
| 28 | exit (0); |
| 29 | } |