1 // { dg-do assemble  }
2 // GROUPS passed operators
3 // opr-new file
4 // From: rwave!myersn%rwave.roguewave@cs.orst.edu (Nathan Myers)
5 // Date:     Wed, 16 Dec 92 11:55 PST
6 // Subject:  2.3.2: friend decl breaks member op new
7 // Message-ID: <m0n24qP-0000GmC@rwave.roguewave.com>
8 
9 #include <stddef.h>
10 struct Link {
11   void* operator new(size_t, int);
12   friend void* __builtin_new(size_t);  // This declaration triggers the bug
13 };
f()14 void f() { new(2) Link; }
15