Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
GLOBAL_NOTHROW_T.cpp
Go to the documentation of this file.
1// checking for ::nothrow_t
2
3
25#include <stddef.h> // for size_t
26
27#include "config.h"
28
29
30// declare a global nothrow_t
31struct nothrow_t { };
32
33
34#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
35# define throw()
36#endif // _RWSTD_NO_EXCEPTION_SPECIFICATION
37
38void* operator new (size_t n, const nothrow_t&) throw ();
39
40int main ()
41{
42 // won't link if ::operator new (size_t, const ::nothrow_t&)
43 // is not defined in the compiler support library
44 ::operator new (1, nothrow_t ());
45
46 return 0;
47}
#define n
Definition 17.names.cpp:130
int main()