921e5a0eb4
From-SVN: r14840
17 lines
312 B
C
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");
|
|
}
|