PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr82389.c
blobeae5957cd0cbf849862db7cde964261b20c1b74e
1 /* PR tree-optimization/82389 */
2 /* { dg-do compile { target lp64 } } */
3 /* { dg-options "-w -O3" } */
5 struct S { char s[0x40000000]; } s;
7 void
8 foo (struct S *p)
10 char b[0x0ffffffff0000000L];
11 *(struct S *)&b[0x0fffffffef000000L] = s;
12 *p = *(struct S *)&b[0x0fffffffefffffffL];