Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20071207-1.c
blob27b871616b1ac17d648d7839e88ed0a5b1820523
1 /* PR tree-optimization/34371 */
2 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
4 void centerln (int width, int ch, char *s)
6 unsigned int sidebar;
7 int i;
8 char linet1[1000];
9 char linet2[100];
10 sidebar = (width - __builtin_strlen (s)) / 2;
11 for (i = 0; i < sidebar; i++)
12 linet2[i] = ch;
13 __builtin_strcpy (linet1, linet2);