gcc/testsuite/gcc.c-torture/execute/20010518-1.c
raw| 1 | /* Leaf functions with many arguments. */ |
| 2 | |
| 3 | void abort (void); |
| 4 | void exit (int); |
| 5 | |
| 6 | int |
| 7 | add (int a, |
| 8 | int b, |
| 9 | int c, |
| 10 | int d, |
| 11 | int e, |
| 12 | int f, |
| 13 | int g, |
| 14 | int h, |
| 15 | int i, |
| 16 | int j, |
| 17 | int k, |
| 18 | int l, |
| 19 | int m) |
| 20 | { |
| 21 | return a+b+c+d+e+f+g+h+i+j+k+l+m; |
| 22 | } |
| 23 | |
| 24 | int |
| 25 | main(void) |
| 26 | { |
| 27 | if (add (1,2,3,4,5,6,7,8,9,10,11,12,13) != 91) |
| 28 | abort (); |
| 29 | |
| 30 | exit (0); |
| 31 | } |