aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lto/20090311-1_0.C
blob: 6d403272428afec7078a805b6d38fb3f7c81ce21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* { dg-lto-do run }  */
#include "20090311-1.h"
bool flag;

struct B {
    int a;
    enum { ANOTHER, ONE } f2_;
    float c;
};

extern struct B x[];

struct C {
    int x;
    struct B *p;
    float d;
};

C c = { 0, 0, 3.4 };

struct A {
    enum { UNO, DOS, TRES } f1_;
    int x;
};

A a;

extern int foo();
main()
{
  a.x = 4 + c.x;
  foo();
  return 0;
}