summaryrefslogtreecommitdiffstats
path: root/libcxx/test/language.support/support.exception/exception.terminate
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-12-20 01:40:03 +0000
committerEric Fiselier <eric@efcs.ca>2014-12-20 01:40:03 +0000
commit5a83710e371fe68a06e6e3876c6a2c8b820a8976 (patch)
treeafde4c82ad6704681781c5cd49baa3fbd05c85db /libcxx/test/language.support/support.exception/exception.terminate
parentf11e8eab527fba316c64112f6e05de1a79693a3e (diff)
downloadbcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.tar.gz
bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.zip
Move test into test/std subdirectory.
llvm-svn: 224658
Diffstat (limited to 'libcxx/test/language.support/support.exception/exception.terminate')
-rw-r--r--libcxx/test/language.support/support.exception/exception.terminate/nothing_to_do.pass.cpp12
-rw-r--r--libcxx/test/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp25
-rw-r--r--libcxx/test/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp23
-rw-r--r--libcxx/test/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp19
-rw-r--r--libcxx/test/language.support/support.exception/exception.terminate/terminate/terminate.pass.cpp26
5 files changed, 0 insertions, 105 deletions
diff --git a/libcxx/test/language.support/support.exception/exception.terminate/nothing_to_do.pass.cpp b/libcxx/test/language.support/support.exception/exception.terminate/nothing_to_do.pass.cpp
deleted file mode 100644
index b58f5c55b64..00000000000
--- a/libcxx/test/language.support/support.exception/exception.terminate/nothing_to_do.pass.cpp
+++ /dev/null
@@ -1,12 +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.
-//
-//===----------------------------------------------------------------------===//
-
-int main()
-{
-}
diff --git a/libcxx/test/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp b/libcxx/test/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp
deleted file mode 100644
index 82ae4aaa88d..00000000000
--- a/libcxx/test/language.support/support.exception/exception.terminate/set.terminate/get_terminate.pass.cpp
+++ /dev/null
@@ -1,25 +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 get_terminate
-
-#include <exception>
-#include <cstdlib>
-#include <cassert>
-
-void f1() {}
-void f2() {}
-
-int main()
-{
- std::set_terminate(f1);
- assert(std::get_terminate() == f1);
- std::set_terminate(f2);
- assert(std::get_terminate() == f2);
-}
diff --git a/libcxx/test/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp b/libcxx/test/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp
deleted file mode 100644
index c4bff603ebb..00000000000
--- a/libcxx/test/language.support/support.exception/exception.terminate/set.terminate/set_terminate.pass.cpp
+++ /dev/null
@@ -1,23 +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 set_terminate
-
-#include <exception>
-#include <cstdlib>
-#include <cassert>
-
-void f1() {}
-void f2() {}
-
-int main()
-{
- std::set_terminate(f1);
- assert(std::set_terminate(f2) == f1);
-}
diff --git a/libcxx/test/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp b/libcxx/test/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp
deleted file mode 100644
index 232ce0a5a88..00000000000
--- a/libcxx/test/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp
+++ /dev/null
@@ -1,19 +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_handler
-
-#include <exception>
-
-void f() {}
-
-int main()
-{
- std::terminate_handler p = f;
-}
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