Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / conv-4.C
blobcd85b2ad336c85eafcaad0a451ee237114e814fe
1 // { dg-do compile }
3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 21 Jul 2004 <nathan@codesourcery.com>
6 // { dg-final { scan-assembler "_ZNK1AcviEv" } }
7 // { dg-final { scan-assembler-not "_ZNK1VcviEv" } }
9 struct V 
11   operator int () const;
14 struct A : virtual V
16   operator int () const; // this one
19 struct B1 : A, virtual V
23 struct B2 : virtual V, A
28 int Foo (B1 const &b)
30   return b;
32 int Foo (B2 const &b)
34   return b;