| // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| // Exceptions. See /LICENSE for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| |
| // Mock of standard library <new> header. |
| |
| #ifndef CRUBIT_NULLABILITY_TEST_NEW_ |
| #define CRUBIT_NULLABILITY_TEST_NEW_ |
| |
| namespace std { |
| struct nothrow_t { |
| explicit nothrow_t() = default; |
| }; |
| extern const nothrow_t nothrow; |
| using size_t = decltype(sizeof(int)); |
| } // namespace std |
| void *operator new(std::size_t size, const std::nothrow_t &) noexcept; |
| |
| #endif // CRUBIT_NULLABILITY_TEST_NEW_ |