OSDN Git Service

fix implicit int
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.mike / net46.C
1 #include <iostream.h>
2 #include <stddef.h>
3 #include <new>
4
5 int fail = 1;
6
7 static void *operator new(size_t size) throw (std::bad_alloc) {
8   --fail;
9   return (void*) 0;
10 }
11
12 int main() {
13   cout << "";
14   new int;
15   return fail;
16 }