modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/20040423-1.c (about) 1 int 2 sub1 (int i, int j) 3 { 4 typedef struct 5 { 6 int c[i+2]; 7 }c; 8 int x[10], y[10]; 9 10 if (j == 2) 11 { 12 memcpy (x, y, 10 * sizeof (int)); 13 return sizeof (c); 14 } 15 else 16 return sizeof (c) * 3; 17 } 18 19 int 20 main () 21 { 22 typedef struct 23 { 24 int c[22]; 25 }c; 26 if (sub1 (20, 3) != sizeof (c)*3) 27 abort (); 28 29 return 0; 30 }