repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
enum3.C
blob
16e71ac67da6706d4736279bbec8f6c22139acd6
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
11
E2 Foo (E1 e)
12
{
13
return static_cast <E2> (e);
14
}