summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr82389.c
blob: eae5957cd0cbf849862db7cde964261b20c1b74e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/82389 */
/* { dg-do compile { target lp64 } } */
/* { dg-options "-w -O3" } */

struct S { char s[0x40000000]; } s;

void
foo (struct S *p)
{
  char b[0x0ffffffff0000000L];
  *(struct S *)&b[0x0fffffffef000000L] = s;
  *p = *(struct S *)&b[0x0fffffffefffffffL];
}