gcc/testsuite/gcc.c-torture/compile/20071207-1.c
raw| 1 | /* PR tree-optimization/34371 */ |
| 2 | /* { dg-require-stack-size "1108" } */ |
| 3 | /* Testcase by Martin Michlmayr <[email protected]> */ |
| 4 | |
| 5 | void centerln (int width, int ch, char *s) |
| 6 | { |
| 7 | unsigned int sidebar; |
| 8 | int i; |
| 9 | char linet1[1000]; |
| 10 | char linet2[100]; |
| 11 | sidebar = (width - __builtin_strlen (s)) / 2; |
| 12 | for (i = 0; i < sidebar; i++) |
| 13 | linet2[i] = ch; |
| 14 | __builtin_strcpy (linet1, linet2); |
| 15 | } |