URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error29.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
// PR c++/25637
struct A {
void foo();
A();
void operator delete(void *);
};
struct B {
friend void A::foo() {} // { dg-error "22:cannot define member function 'A::foo' within 'B'" }
friend void A::operator delete(void*) {} // { dg-error "39:cannot define member function 'A::operator delete' within 'B'" }
friend A::A() {} // { dg-error "15:cannot define member function 'A::A' within 'B'" }
};
Go to most recent revision | Compare with Previous | Blame | View Log