1 // Origin PR c++/51473
2 // { dg-options "-std=c++11" }
3 
4 struct A
5 {
6     auto friend struct B; // { dg-error "multiple types|can only be specified|friend" }
7 };
8 
9 auto int; // { dg-error "multiple types|can only be specified for variables" }
10