Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
OPERATOR_DELETE_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
49#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
50# define throw()
51#endif // _RWSTD_NO_EXCEPTION_SPECIFICATION
52
53
54void operator delete (void*, const nothrow_t&) throw ();
55
56int main ()
57{
58 void* ptr = 0;
59 ::operator delete(ptr, nothrow_t ());
60 return 0;
61}
#define ptr
Definition 17.names.cpp:525
Definition json.h:5363