1 // PR c++/35578 2 // Check position of error message 3 // { dg-do compile } 4 5 int i; 6 7 friend // { dg-error "friend" } 8 void foo(); 9