| 1 |
//===----------------------------------------------------------------------===// |
| 2 |
// |
| 3 |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 |
// See https://llvm.org/LICENSE.txt for license information. |
| 5 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 |
// |
| 7 |
//===----------------------------------------------------------------------===// |
| 8 |
|
| 9 |
// struct nothrow_t { |
| 10 |
// explicit nothrow_t() = default; |
| 11 |
// }; |
| 12 |
// extern const nothrow_t nothrow; |
| 13 |
|
| 14 |
#include <new> |
| 15 |
|
| 16 |
|
| 17 |
int main(int, char**) { |
| 18 |
std::nothrow_t x = std::nothrow; |
| 19 |
(void)x; |
| 20 |
|
| 21 |
return 0; |
| 22 |
} |