URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [friend1.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed friends
// friends file
// From: rwave!myersn%rwave.roguewave@cs.orst.edu (Nathan Myers)
// Date: Thu, 17 Dec 92 16:33 PST
// Subject: 2.3.2: friend decl of new confuses constructor
// Message-ID: <m0n2Vec-0000GrC@rwave.roguewave.com>
#include <stddef.h>
#include <new>
struct Foo {
friend void* operator new(size_t) throw (std::bad_alloc);
friend void operator delete(void*) throw ();
Foo();
~Foo();
};
Foo::Foo() { }
Foo::~Foo() { }
Go to most recent revision | Compare with Previous | Blame | View Log