summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend40.C
blob: 646087630017feede397fa3b4d591dea1a3b2970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// { dg-options "-Wno-non-template-friend" }
// Origin: Jason Merrill <jason@cygnus.com>

template<class T> struct A
{
  friend void f ();
};

A<short> a;
A<int> b;