Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
friend4.C
blob: dc55280751d1cb101d01bbcdede7dc588e682dfc [
file
] [
log
] [
blame
]
// { dg-do assemble }
// GROUPS passed friends
// do_friend should complain that foo was declared as a friend of
// A before A was defined
struct
A
;
// { dg-message "forward" }
struct
B
{
friend
A
::
foo
();
};
// { dg-error "" } .*