aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/array7.C
blob: c045a349dd32d35b9a021c066095ba9919b77b1f (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <typename T>
struct S {
  enum E { e = 5 };
  static int i[e];
};

template <typename T>
int S<T>::i[S<T>::e];