Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
OPERATOR_DELETE_ARRAY_NOTHROW.cpp
Go to the documentation of this file.
1// checking for operator delete[] (void*, nothrow_t)
2
3
25#include "config.h"
26#include <stddef.h>
27
28#ifndef _RWSTD_NO_NAMESPACE
29# ifndef _RWSTD_NO_STD_NOTHROW_T
30
31namespace std {
32
33# endif // _RWSTD_NO_STD_NOTHROW_T
34#endif // _RWSTD_NO_NAMESPACE
35
36struct nothrow_t { };
37
38#ifndef _RWSTD_NO_NAMESPACE
39# ifndef _RWSTD_NO_STD_NOTHROW_T
40
41} // end namespace std
42
43using std::nothrow_t;
44
45# endif // _RWSTD_NO_STD_NOTHROW_T
46#endif // _RWSTD_NO_NAMESPACE
47
48#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
49# define throw()
50#endif // _RWSTD_NO_EXCEPTION_SPECIFICATION
51
52void operator delete[] (void*, const nothrow_t&) throw ();
53
54int main ()
55{
56 void* ptr = 0;
57 ::operator delete[] (ptr, nothrow_t());
58 return 0;
59}
#define ptr
Definition 17.names.cpp:525
Definition json.h:5363