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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [nullptr23.C] - Blame information for rev 693

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/50361
2
// { dg-options -std=c++0x }
3
 
4
#include 
5
 
6
struct Foo
7
{
8
  Foo(std::initializer_list) { };
9
 
10
  template Foo(T t) { T u(t); };
11
 
12
private:
13
  union Data
14
  {
15
    Data() : null(nullptr) {}
16
 
17
    std::nullptr_t null;
18
  } u_;
19
};
20
 
21
int main()
22
{
23
  Foo f = { {} };
24
}

powered by: WebSVN 2.1.0

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