OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [delete1.C] - Blame information for rev 718

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/2136
2
// Test that overloaded op new and delete don't prevent us from using the
3
// global versions with an explicit scope.
4
 
5
#include 
6
 
7
struct A {
8
  void *operator new (size_t, float);
9
  void operator delete (void *, float);
10
};
11
 
12
int main ()
13
{
14
  A *p = ::new A;
15
  ::delete p;
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.