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] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options -std=c++0x }
struct HopefullyLiteral {
HopefullyLiteral() = default; // Should be a constexpr c'tor as of 12.1/6 and 8.4.2/4
};
constexpr HopefullyLiteral var1{}; // OK
constexpr HopefullyLiteral var2 = HopefullyLiteral{}; // #1
constexpr HopefullyLiteral var3 = HopefullyLiteral(); // #2
constexpr HopefullyLiteral var4 = HopefullyLiteral(var3); // #3
Go to most recent revision | Compare with Previous | Blame | View Log