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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum.C
blob
f2192e794fca29592df91fc03620254e4c9c3ee9
1
// { dg-do assemble }
2
// GROUPS passed enums
3
template<class T>
4
struct templ
5
{
6
enum { val = 0 };
7
};
8
struct Foo
9
{
10
enum {
11
bar = 0,
12
len = templ<int>::val
13
};
14
};
15
void func()
16
{
17
int s = Foo::bar; // Ensure that expansion of templ did not erase bar
18
}