1// Build don't link:
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
8enum E1 {e1};
9enum E2 {e2};
10
11E2 Foo (E1 e)
12{
13  return static_cast <E2> (e);
14}
15