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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-incomplete2.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
// A constructor that might or might not be constexpr still makes
2
// its class literal.
3
// { dg-options -std=c++0x }
4
 
5
template 
6
struct B
7
{
8
  constexpr B(T) { }
9
  constexpr B() {}
10
};
11
 
12
struct A
13
{
14
  B b;
15
};
16
 
17
constexpr A a {};
18
 
19
template 
20
struct C
21
{
22
  constexpr C(T) { }
23
  C() {}
24
};
25
 
26
struct D
27
{
28
  C c;
29
};
30
 
31
constexpr D d {};               // { dg-error "non-constexpr function" }

powered by: WebSVN 2.1.0

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