PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / friend1.C
bloba35f92ad949bb5f01c95a7d29ad648bb8a6150b4
1 // { dg-options "-fdiagnostics-show-caret" }
3 friend void foo();  /* { dg-error "used outside of class" }
4   { dg-begin-multiline-output "" }
5  friend void foo();
6  ^~~~~~
7  ------
8   { dg-end-multiline-output "" } */