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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [union2.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Positive test for C++0x unrestricted unions
2
// { dg-options -std=c++0x }
3
 
4
struct A
5
{
6
  A();
7
  A(const A&);
8
  ~A();
9
};
10
 
11
union B
12
{
13
  A a;
14
  B();
15
  B(const B&);
16
  ~B();
17
};
18
 
19
B b;
20
B b2(b);
21
 
22
struct C
23
{
24
  union
25
  {
26
    A a;
27
  };
28
  C();
29
  C(const C&);
30
  ~C();
31
};
32
 
33
C c;
34
C c2(c);

powered by: WebSVN 2.1.0

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