summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43557-1.c
blob: 5ba467d01c3743854df87c5a49f621d71b0e1404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR debug/43557 */
/* { dg-do link } */
/* { dg-require-effective-target lto } */
/* { dg-options "-flto -g -O2" } */
/* { dg-additional-sources "pr43557-2.c" } */

struct S
{
  int v;
} g;

void
f1 (void)
{
  struct S *s = &g;
  s->v = 0;
}

int main() { return 0; }