xref: /llvm-project/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp (revision 1ee41b415398cde51c055a7b1a4d419350e7038f)
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 
main(int,char **)17 int main(int, char**) {
18   std::nothrow_t x = std::nothrow;
19   (void)x;
20 
21   return 0;
22 }
23