summaryrefslogtreecommitdiffstats
path: root/libcxx/test/language.support/support.exception/exception.terminate/terminate
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/language.support/support.exception/exception.terminate/terminate')
-rw-r--r--libcxx/test/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/libcxx/test/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp b/libcxx/test/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp
deleted file mode 100644
index 3199d9b9ea9..00000000000
--- a/libcxx/test/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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.
-//
-//===----------------------------------------------------------------------===//
-
-// test terminate
-
-#include <exception>
-#include <cstdlib>
-#include <cassert>
-
-void f1()
-{
- std::exit(0);
-}
-
-int main()
-{
- std::set_terminate(f1);
- std::terminate();
- assert(false);
-}
OpenPOWER on IntegriCloud