Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / enum3.C
blob16e71ac67da6706d4736279bbec8f6c22139acd6
1 // { dg-do assemble  }
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Feb 2001 <nathan@codesourcery.com>
6 // Bug 338 and DR 128. Allow static cast to convert between enums.
8 enum E1 {e1};
9 enum E2 {e2};
11 E2 Foo (E1 e)
13   return static_cast <E2> (e);