URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-46336.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/46336
// { dg-options -std=c++0x }
extern "C" {
enum A { };
inline constexpr A
f(A a, A b) // { dg-error "previous declaration" }
{ return A(static_cast<int>(a) & static_cast<int>(b)); }
enum B { };
inline constexpr B
f(B a, B b) // { dg-error "C function" }
{ return B(static_cast<int>(a) & static_cast<int>(b)); }
}
Go to most recent revision | Compare with Previous | Blame | View Log