Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
enum1.C
blob: 12b9a5f468c549ed24232132d685371e217b56fb [
file
] [
log
] [
blame
]
// { dg-do assemble }
// GROUPS passed enums
class
foo
{
public
:
enum
bar
{
baz
=
1
,
bat
=
7
};
};
class
derv
:
public
foo
{
};
int
main
()
{
foo
::
bar x
=
foo
::
baz
;
derv
::
bar y
=
derv
::
bat
;
}