PR tree-optimization/93683 - ICE on calloc with unused return value in ao_ref_init_fr...
[gcc.git] / gcc / testsuite / gcc.dg / pr82389.c
1 /* PR tree-optimization/82389 */
2 /* { dg-do compile { target lp64 } } */
3 /* { dg-options "-w -O3" } */
4
5 struct S { char s[0x40000000]; } s;
6
7 void
8 foo (struct S *p)
9 {
10 char b[0x0ffffffff0000000L];
11 *(struct S *)&b[0x0fffffffef000000L] = s;
12 *p = *(struct S *)&b[0x0fffffffefffffffL];
13 }