URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-nonlit.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// FIXME this is currently invalid, but seems like it should be OK
// { dg-options -std=c++0x }
struct A { A() { } };
template<class T>
constexpr bool ignore(T&&) { return true; }
static_assert(ignore(10), "Error"); // OK
A s;
static_assert(ignore(s), "Error"); // Currently an error
Go to most recent revision | Compare with Previous | Blame | View Log