summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/template18.C
blob: f5a4755e8c3af1edce33e81fc731b0d603733b4a (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
// { dg-do link  }
// Origin: Andrey Slepuhin <pooh@msu.ru>

namespace A
{
  int j;

  template <typename val_t>
  struct X
  {
    inline X ()
    {
      extern int j;
      i = j;
    }

    int i;
  };
}

int main ()
{
  A::X<int> x;
}