Debian Codegraph @

gcc/testsuite/g++.dg/other/error4.C

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