diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/error4.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/error4.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/error4.C b/gcc/testsuite/g++.dg/other/error4.C new file mode 100644 index 000000000..bd740d92a --- /dev/null +++ b/gcc/testsuite/g++.dg/other/error4.C @@ -0,0 +1,15 @@ +// { dg-do compile } + +// Copyright (C) 2003 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 21 Mar 2003 <nathan@codesourcery.com> + +// PR 9898. Confusing error message + +struct Wrapper {}; + +void Foo(int const &); // { dg-error "in passing" "" } + +void Baz () +{ + Foo (Wrapper ()); // { dg-error "Wrapper" "" } +} |