modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/pr49644.c (about)

     1  /* PR c/49644 */
     2  
     3  extern void abort (void);
     4  
     5  int
     6  main ()
     7  {
     8    _Complex double a[12], *c = a, s = 3.0 + 1.0i;
     9    double b[12] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }, *d = b;
    10    int i;
    11    for (i = 0; i < 6; i++)
    12      *c++ = *d++ * s;
    13    if (c != a + 6 || d != b + 6)
    14      abort ();
    15    return 0;
    16  }