2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / error4.C
blob6a8cb40e01401c140035327ff74572695694061c
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 21 Mar 2003 <nathan@codesourcery.com>
6 // PR 9898. Confusing error message
8 struct Wrapper {};
10 void Foo(int const &); // { dg-message "in passing" }
12 void Baz ()
14   Foo (Wrapper ()); // { dg-error "Wrapper" }