repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
delete1.C
blob
beaed209dc95de12e6b9e5ce134d8c159b30d110
1
// 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 <stddef.h>
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
}