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
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
enum2.C
blob
b6178517bb39f60895ff4b0dfd72b92624890f91
1
// { dg-do assemble }
2
// GROUPS passed enums
3
class foo {
4
public:
5
enum bar { baz = 1, bat = 7 };
6
};
7
8
class foo2 {
9
public:
10
enum bar2 { baz2 = 1, bat2 = 7 };
11
};
12
13
class derv : public foo, public foo2 { };
14
15
int main()
16
{
17
foo::bar x = foo::baz;
18
derv::bar2 y = derv::bat2;
19
}