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] - Rev 709

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

// PR c++/49803
// { dg-options -std=c++0x }

struct X
{
  X() = delete;
};

union Y
{
  // N3291=11-0061 12.6.2/8 says no initialization of
  // of other variant members (i.e. m_x) should
  // be performed.
  Y() : m_char1{ }
  { }

  struct
  {
    char m_char1;
  };

  X    m_x;
};

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

powered by: WebSVN 2.1.0

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