aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/nontype3.C
blob: f48d00010f46c29f583a4e0073e4f035cd473802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// { dg-do assemble  }

enum E { e };

template <const E* ep>
struct S1
{
  static const char* s;
};

template <int D>
struct S2 {};

template <>
struct S2<1>
{
  static E es[1];
};

struct S3
{
  typedef S1<S2<1>::es> S3_Type;
};

E S2<1>::es[1] = {e};

template <>
const char* S1<S2<1>::es>::s = "abc";