OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / friend38.C
1 // { dg-do assemble  }
2
3 // Overly simplified from testcase by "B. K. Oxley" <binkley@bigfoot.com>
4
5 template<class P, class Q> struct foo {
6   typedef P parent_type;
7   friend parent_type; // { dg-error "" } template parameters cannot be friends
8   friend Q;           // { dg-error "" } template parameters cannot be friends
9 };