summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend40.C
blob: 39dd994e9d18904b4330ac54fdc7a18fe041bcb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/24173
// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }

template <int> struct A;

void foo(A<0>);

template<int> struct A
{
  friend void foo(A<0>);
};

void bar()
{
  foo(A<0>());
}