OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ns / template18.C
1 // { dg-do link  }
2 // Origin: Andrey Slepuhin <pooh@msu.ru>
3
4 namespace A
5 {
6   int j;
7
8   template <typename val_t>
9   struct X
10   {
11     inline X ()
12     {
13       extern int j;
14       i = j;
15     }
16
17     int i;
18   };
19 }
20
21 int main ()
22 {
23   A::X<int> x;
24 }