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
* c-common.c (get_priority): Add check for
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum3.C
blob
2e43608db0352c37b6348c8501bd2b63a788b1a8
1
// { dg-do run }
2
struct S { enum en { s0, s1, s2 }; };
3
4
template<typename S::en e>
5
int val( )
6
{
7
return e;
8
}
9
10
11
int main()
12
{
13
return val<S::s0>( );
14
}
15