Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / inherit / covariant12.C
blob434082abb0daf546d539059587fe9db98e64e201
1 // Copyright (C) 2004 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 27 Feb 2005<nathan@codesourcery.com>
4 // PR 20232: ICE on invalid
6 struct T { };
8 struct S;
10 struct B
12   virtual T *Foo (); // { dg-error "overriding" "" }
15 struct D : B
17   virtual S *Foo (); // { dg-error "invalid covariant" "" }