summaryrefslogtreecommitdiff
path: root/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp
blob: 3a6231329f096467900ae886c9d2206d62b7dd4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// struct nothrow_t {
//   explicit nothrow_t() = default;
// };
// extern const nothrow_t nothrow;

#include <new>


int main(int, char**) {
  std::nothrow_t x = std::nothrow;
  (void)x;

  return 0;
}