OSDN Git Service

* g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / nontype3.C
1 // Build don't link:
2
3 enum E { e };
4
5 template <const E* ep>
6 struct S1
7 {
8   static char* s;
9 };
10
11 template <int D>
12 struct S2 {};
13
14 template <>
15 struct S2<1>
16 {
17   static E es[1];
18 };
19
20 struct S3
21 {
22   typedef S1<S2<1>::es> S3_Type;
23 };
24
25 E S2<1>::es[1] = {e};
26
27 template <>
28 char* S1<S2<1>::es>::s = "abc";