1 // { dg-do compile }
2 
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 21 Mar 2003 <nathan@codesourcery.com>
5 
6 // PR 9898. Confusing error message
7 
8 struct Wrapper {};
9 
10 void Foo(int const &); // { dg-message "in passing" }
11 
Baz()12 void Baz ()
13 {
14   Foo (Wrapper ()); // { dg-error "Wrapper" }
15 }
16