modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/20030221-1.c (about) 1 /* PR optimization/8613 */ 2 /* Contributed by Glen Nakamura */ 3 4 extern void abort (void); 5 6 int main (void) 7 { 8 char buf[16] = "1234567890"; 9 char *p = buf; 10 11 *p++ = (char) __builtin_strlen (buf); 12 13 if ((buf[0] != 10) || (p - buf != 1)) 14 abort (); 15 16 return 0; 17 }