8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/arm13.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

17 lines
312 B
C

// GROUPS passed ARM-compliance
#include <stdio.h>
#include <stdlib.h>
inline void *operator new(size_t, void *place) { return place; }
void* malloc(size_t);
void free(void*);
main()
{
int* p = (int*) malloc(sizeof(int));
(void) new (p) int(1);
p->int::~int();
free(p);
printf ("PASS\n");
}