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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49803
2
// { dg-options -std=c++0x }
3
 
4
struct X
5
{
6
  X() = delete;
7
};
8
 
9
union Y
10
{
11
  // N3291=11-0061 12.6.2/8 says no initialization of
12
  // of other variant members (i.e. m_x) should
13
  // be performed.
14
  Y() : m_char1{ }
15
  { }
16
 
17
  struct
18
  {
19
    char m_char1;
20
  };
21
 
22
  X    m_x;
23
};

powered by: WebSVN 2.1.0

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