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
simulate-thread tests: Silence gdb debuginfod warning
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
scoped_enum12.C
blob
1d10431e6dc4e525f0af6852b216f7d2fb183b32
1
// PR c++/111895
2
// { dg-do compile { target c++11 } }
3
4
enum class o_field : unsigned char { no, yes, different_from_s };
5
struct fields {
6
o_field o : 2;
7
};
8
bool func(fields f) { return static_cast<bool>(f.o); }