summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/friend4.C
blob: 470e6f6b56709eec078080db433d6ae935bd78b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// GROUPS passed friends
// friends file
// From: osinski@cs.nyu.edu (Ed Osinski)
// Date:     Fri, 05 Jun 92 20:47:37 -0400
// Subject:  parameter name forgotten in certain friends
// Message-ID: <9206060047.AA05594@MURRAY.CS.NYU.EDU>

class T2;

class T {
   friend void f (int&);
};

class T2 {
      friend void f (int& i)  { // BOGUS - 
      i = 1;
   }
};