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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-delegating2.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
// PR c++/51723
2
// { dg-options -std=c++0x }
3
 
4
template 
5
struct A
6
{
7
  static constexpr int a[sizeof...(V)] = { V... };
8
};
9
 
10
template  constexpr int A::a[];
11
 
12
struct B
13
{
14
  const int* const b;
15
 
16
  template 
17
  constexpr B(const int(&b)[N])
18
  : b(b)
19
  { }
20
 
21
  template 
22
  constexpr B(A)
23
  : B(A::a)
24
  { }
25
};
26
 
27
constexpr B b1 = A<10, 20, 30>::a;
28
constexpr B b2 = A<10, 20, 30>();

powered by: WebSVN 2.1.0

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