summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/enum3.C
blob: 2e43608db0352c37b6348c8501bd2b63a788b1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run  }
struct S { enum en { s0, s1, s2 }; };

template<typename S::en e>
int val( )
{
  return e;
}


int main()
{
  return val<S::s0>( );
}