aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net46.C
blob: 1813a43814fcce8096c3b09533016d5ca8f485d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream.h>
#include <stddef.h>

int fail = 1;

static void *operator new(size_t size) {
  --fail;
  return (void*) 0;
}

main() {
  cout << "";
  new int;
  return fail;
}