summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp')
-rw-r--r--libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp b/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp
new file mode 100644
index 00000000000..3a6231329f0
--- /dev/null
+++ b/libcxx/test/std/language.support/support.dynamic/nothrow_t.pass.cpp
@@ -0,0 +1,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;
+}
OpenPOWER on IntegriCloud