1 // { dg-do assemble  }
2 
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Feb 2001 <nathan@codesourcery.com>
5 
6 // Bug 338 and DR 128. Allow static cast to convert between enums.
7 
8 enum E1 {e1};
9 enum E2 {e2};
10 
Foo(E1 e)11 E2 Foo (E1 e)
12 {
13   return static_cast <E2> (e);
14 }
15