OSDN Git Service

PR libstdc++/37907
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.oliva / friend1.C
1 // { dg-do assemble  }
2
3 // Copyright (C) 2001 Free Software Foundation
4
5 // by Alexandre Oliva <aoliva@redhat.com>
6
7 // We shouldn't warn about bar referring to a non-template in this case.
8
9 template <typename T>
10 class foo {
11   friend int bar(int);
12 };