[RISC-V] Avoid unnecessary extensions when value is already extended
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / virtual11.C
blob172216abc1db5ec017413c9970cda15c17bb0653
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Nov 2000 <nathan@codesourcery.com>
6 // We failed to check virtual functions hidden by using declarations.
8 struct A
10   virtual int foo ();
13 struct B
15   virtual void foo ();  // { dg-message "" } of this function
18 struct C : A , B
22 struct D : C
24   void foo (short);
25   using A::foo;
28 struct E : D
30   virtual int foo ();   // { dg-error "" } invalid override