OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [union4.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// { dg-options "" }
3
// Origin: Mark Mitchell 
4
 
5
union A
6
{
7
  int i;
8
  int j;
9
 
10
  A () : i (3), j (2) {} // { dg-error "" } multiple initializations
11
};
12
 
13
union B
14
{
15
  int i;
16
  union {
17
    int j;
18
  };
19
 
20
  B () : i (3), j (2) {} // { dg-error "" } multiple initializations
21
};
22
 
23
union C
24
{
25
  union {
26
    struct {
27
      int i;
28
      int j;
29
    };
30
  };
31
 
32
  C () : i (3), j (2) {}
33
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.