1 /* PR tree-optimization/57230 */ 2 /* { dg-do run } */ 3 /* { dg-options "-O2" } */ 4 5 #include "strlenopt.h" 6 7 int main()8 main () 9 { 10 char p[] = "hello world"; 11 p[0] = (char) (strlen (p) - 1); 12 if (strlen (p) != 11) 13 abort (); 14 return 0; 15 } 16