URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-ctor8.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/46466
// { dg-options "-std=c++0x -fno-elide-constructors" }
struct S { bool b; };
constexpr S f() { return S{true}; }
static_assert(f().b, "");
Go to most recent revision | Compare with Previous | Blame | View Log