LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / strlenopt-23.c
blob75dab2ae0bb91aa508dd051a21a33192331f1d94
1 /* PR tree-optimization/57230 */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
5 #include "strlenopt.h"
7 int
8 main ()
10 char p[] = "hello world";
11 p[0] = (char) (strlen (p) - 1);
12 if (strlen (p) != 11)
13 abort ();
14 return 0;