OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error29.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
2
// PR c++/25637
3
 
4
struct A {
5
  void foo();
6
  A();
7
  void operator delete(void *);
8
};
9
struct B {
10
  friend void A::foo() {} // { dg-error "22:cannot define member function 'A::foo' within 'B'" }
11
  friend void A::operator delete(void*) {} // { dg-error "39:cannot define member function 'A::operator delete' within 'B'" }
12
  friend A::A() {} // { dg-error "15:cannot define member function 'A::A' within 'B'" }
13
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.