PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / static3.C
blob65cf2c9e7b2149dfa24331b7c8ca92af113f4053
1 template <class data> class foo
3     public:
4         static const int a;
5         static const int b;
6         static const int c;
7         static const int d;
8 };
10 template <class data> const int foo<data>::a = 1;
11 template <class data> const int foo<data>::b = a;
12 template <class data> const int foo<data>::c = b;
13 template <class data> const int foo<data>::d = c;
15 typedef foo<int> fooInt;
17 int main( void )
19     fooInt *f;
21     f = new fooInt();
23     if (f->c != 1 || f->d != 1)
24       return 1;