URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [op5.C] - Rev 701
Go to most recent revision | Compare with Previous | Blame | View Log
// Contributed by Dodji Seketeli <dseketel@redhat.com>
// Origin: PR c++/36407
// { dg-do compile }
struct A
{
A (const A&);
};
struct B
{
operator A&();
};
void
foo (const B& b)
{
const A a = b; // { dg-error "conversion from 'const B' to non-scalar type 'const A' requested" }
}
Go to most recent revision | Compare with Previous | Blame | View Log