RISC-V: Fix rtl checking enabled failure with -msave-restore.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / friend4.C
blobdc55280751d1cb101d01bbcdede7dc588e682dfc
1 // { dg-do assemble  }
2 // GROUPS passed friends
3 // do_friend should complain that foo was declared as a friend of
4 // A before A was defined
5 struct A; // { dg-message "forward" } 
6 struct B { friend A::foo (); };// { dg-error "" } .*