OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/51553
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum19.C
1
// We shouldn't give an ABI warning about promotion in switch.
2
// { dg-options "-std=c++0x -fabi-version=5 -Wabi" }
3
4
enum class Foo { X };
5
void test(Foo val)
6
{
7
switch(val)
8
{
9
case Foo::X:
10
break;
11
}
12
};