blob: ec134c26ea905afe9f9b847e16ac8b5ea8a9cd33 (
plain)
1
2
3
4
5
6
7
8
|
// PR c++/23694
extern "C" struct A
{
friend void foo(int) {} // { dg-error "declaration" }
friend void foo() {} // { dg-error "foo" "err" }
// { dg-warning "already a friend" "warn" { target *-*-* } 6 }
};
|