Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
OPERATOR_NEW_ARRAY.cpp
Go to the documentation of this file.
1// checking for operator new[] (size_t)
2
3
25#include "config.h"
26
27#include <stddef.h>
28
29#ifndef _RWSTD_NO_NAMESPACE
30namespace std {
31#endif
32
33 struct bad_alloc {};
34
35#ifndef _RWSTD_NO_NAMESPACE
36}
37#else
38# define std
39#endif
40
41#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
42# define throw(e)
43#endif // _RWSTD_NO_EXCEPTION_SPECIFICATION
44
45
46void* operator new[] (size_t) throw (std::bad_alloc);
47
48int main ()
49{
50 operator new[] (1);
51
52 return 0;
53}
int main()
Definition json.h:5363