URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed visibility
|
// GROUPS passed visibility
|
// visibility file
|
// visibility file
|
// From: wpsun4!xinforms!johnjo@uunet.uu.net (John D. Johnson)
|
// From: wpsun4!xinforms!johnjo@uunet.uu.net (John D. Johnson)
|
// Date: Wed, 4 Aug 93 13:25:25 MDT
|
// Date: Wed, 4 Aug 93 13:25:25 MDT
|
// Subject: Access to private 'operator new()'
|
// Subject: Access to private 'operator new()'
|
// Message-ID: <9308041925.AA09825@xinforms.wpunix
|
// Message-ID: <9308041925.AA09825@xinforms.wpunix
|
#include
|
#include
|
#include
|
#include
|
|
|
class X {
|
class X {
|
private:
|
private:
|
void* operator new(size_t) throw(){// { dg-error "" } .*
|
void* operator new(size_t) throw(){// { dg-error "" } .*
|
printf("Inside private new().\n");
|
printf("Inside private new().\n");
|
return NULL;
|
return NULL;
|
}
|
}
|
public:
|
public:
|
X() {}
|
X() {}
|
};
|
};
|
|
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
X* p = new X;// { dg-error "" } .*
|
X* p = new X;// { dg-error "" } .*
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.