URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [crash20.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
template <class T = int>
struct A { // { dg-message "const|operator=" "assignment" }
const T x;
A() : x(0) { } A(T x) : x(x) { }
};
template <class B>
void func ()
{
B y;
y = B(); // { dg-message "synthesized|deleted" }
}
int main (void) { func< A<> >(); }
Go to most recent revision | Compare with Previous | Blame | View Log