summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20090311-1_1.C
blob: 520aa957a98ef8dfc865d64ab11e9d42e09bf07d (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
#include "20090311-1.h"

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

struct B;

extern struct B x[];

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

extern A a;
extern B b;
extern bool flag;
extern C c;

int foo()
{
  if (!flag)
    return a.x - c.x;
  return 0;
}