summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/friend1.C
blob: 63626078021ea1b7d9815da30d07a18823d4ba3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }

// Copyright (C) 2001 Free Software Foundation

// by Alexandre Oliva <aoliva@redhat.com>

// We shouldn't warn about bar referring to a non-template in this case.

template <typename T>
class foo {
  friend int bar(int);
};