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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/51526
2
// { dg-options -std=c++0x }
3
 
4
const int j = 42;
5
 
6
struct S {
7
  int i;
8
  constexpr S(int i) : i(i) {}
9
  constexpr S() : S(j) {}
10
};
11
 
12
constexpr S s{};
13
 
14
#define SA(X) static_assert((X),#X)
15
SA(s.i == 42);

powered by: WebSVN 2.1.0

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