URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [enum3.C] - Rev 384
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 28 Feb 2001 <nathan@codesourcery.com>
// Bug 338 and DR 128. Allow static cast to convert between enums.
enum E1 {e1};
enum E2 {e2};
E2 Foo (E1 e)
{
return static_cast <E2> (e);
}