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
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
enum1.C
1
// { dg-do assemble }
2
// Warn if a enum cannot fit into a small bit-field.
3
4
enum TypeKind { ATK, BTK, CTK, DTK } ;
5
6
struct Type {
7
enum TypeKind kind : 1; // { dg-warning "" }
8
void setBTK();
9
};
10
11
void Type::setBTK() { kind = DTK; }