Sign in
gnu
/
gcc
/
e8cbc2e256b3e9568288594d9f90a2015d31b55a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
enum1.C
blob: 89e8542b779bac52db992505b0b710e935cd04af [
file
] [
log
] [
blame
]
// Build don't link:
// Warn if a enum cannot fit into a small bit-field.
enum
TypeKind
{
ATK
,
BTK
,
CTK
,
DTK
}
;
struct
Type
{
enum
TypeKind
kind
:
1
;
// WARNING -
void
setBTK
();
};
void
Type
::
setBTK
()
{
kind
=
DTK
;
}