1 // Copyright (C) 2007 Free Software Foundation
2 // Contributed by Ollie Wild <aaw@google.com>
6 struct S {}; // { dg-message "struct M::S" "candidate 2" }
10 struct S {}; // { dg-message "candidates are: struct S" "candidate 1" }
14 struct S s; // { dg-error "reference to 'S' is ambiguous|invalid type in declaration" "" }