summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/anon4.C
blob: 59bfee1e814a82f3ad4294e23237eef20774ba8a (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/28407
// A declaration in the anonymous namespace still has external linkage.

template <int *P> class A { };
namespace
{
  int i;
}

A<&i> a;