nothrow_t.pass.cpp 560 B

1234567891011121314151617181920212223
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // struct nothrow_t {
  10. // explicit nothrow_t() = default;
  11. // };
  12. // extern const nothrow_t nothrow;
  13. #include <new>
  14. int main(int, char**) {
  15. std::nothrow_t x = std::nothrow;
  16. (void)x;
  17. return 0;
  18. }