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

typedef struct { int i; } D;
extern void foo (D);

void
bar (void)
{
  D d;
  d.i = 1;
  foo (d);
}

int main() { return 0; }