blob: 5e0924bd459561fed9cbf31ad417149a834e7587 [file] [log] [blame]
// 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_