summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend35.C
blob: b2cd266a4d740e5f54a3d33dc29bfb8fdb7f59db (plain)
1
2
3
4
5
6
7
// { dg-do assemble  }

class foo {
  friend void bar<int>(int); // { dg-error "" } must be declared first
};

template <typename T> void bar(T);