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
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum19.C
blob
b04fd523f071ac440aa5fd1df4312b4f92fb115d
1
// We shouldn't give an ABI warning about promotion in switch.
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-fabi-version=5 -Wabi" }
4
5
enum class Foo { X };
6
void test(Foo val)
7
{
8
switch(val)
9
{
10
case Foo::X:
11
break;
12
}
13
};