summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/anon2.C
blob: f35d5ff3145b3bb58829e9381cb1e407f4017e07 (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
// { dg-do run  }
extern "C" void abort (void);

static union { 
  int x1; 
  long x2; 
  short x3;
  long x4;
};

static union {
  union {
    union {
      int z;
    };
  };
  union {
    union {
      double d;
      int i;
    };
  };
};


int main()
{
  z = 3;
  if (i != 3)
    abort ();
  d = 2.5;
}