PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / pr55718.c
blob14787a583515b05b64cbdec11b68f675d8f9fcf0
1 /* PR target/55717 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -march=z10 -fPIC -Wno-implicit-function-declaration" } */
6 extern char temp[];
7 short ansi_value[256];
8 void terminal_state(void)
10 static const char *puc[] = { "", "<", "=", ">", "?", 0};
11 int i, j, k, l, modes_found;
12 char buf[256];
13 k = (int) __builtin_strlen(temp);
14 for (j = l = 0; j < 255 && j - l < 50; j++)
16 __builtin_sprintf(temp, "\033[%s%d$p", puc[i], j);
17 if (ansi_value[1])
19 l = j;
20 buf[k] = '\0';
21 put_crlf();
22 ptextln(buf);
23 buf[k++] = ' ';
24 k = (int) __builtin_strlen(temp);
27 for (i = j = 0; j < modes_found; j = ++i >> 1)