(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
s390/
pr55718.c
       1  /* PR target/55717  */
       2  
       3  /* { dg-do compile } */
       4  /* { dg-options "-O2 -march=z10 -fPIC -Wno-implicit-function-declaration" } */
       5  
       6  extern char temp[];
       7  short ansi_value[256];
       8  void terminal_state(void)
       9  {
      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++)
      15      {
      16        __builtin_sprintf(temp, "\033[%s%d$p", puc[i], j);
      17        if (ansi_value[1])
      18          {
      19            l = j;
      20            buf[k] = '\0';
      21            put_crlf();
      22            ptextln(buf);
      23            buf[k++] = ' ';
      24            k = (int) __builtin_strlen(temp);
      25          }
      26      }
      27    for (i = j = 0; j < modes_found; j = ++i >> 1)
      28      ;
      29  }