Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / conv-1.C
blobb861c6036dfbf75bc14f3c649e5b83a91c818af8
1 // { dg-do compile }
3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 21 Jul 2004 <nathan@codesourcery.com>
6 // Failed to spot ambiguous conversion
8 struct A1 
10   operator int () const; // { dg-message "A1::operator" "" }
13 struct A2
15   operator int () const; // { dg-message "A2::operator" "" }
18 struct B : A1, A2 
22 int Foo (B const &b)
24   return b; // { dg-error "ambiguous" "" }