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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-value.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
// { dg-options -std=c++0x }
2
 
3
struct HopefullyLiteral {
4
  HopefullyLiteral() = default; // Should be a constexpr c'tor as of 12.1/6 and 8.4.2/4
5
};
6
 
7
constexpr HopefullyLiteral var1{}; // OK
8
constexpr HopefullyLiteral var2 = HopefullyLiteral{}; // #1
9
constexpr HopefullyLiteral var3 = HopefullyLiteral(); // #2
10
constexpr HopefullyLiteral var4 = HopefullyLiteral(var3); // #3

powered by: WebSVN 2.1.0

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