diff options
Diffstat (limited to 'libcxx/test/language.support/support.exception/exception.terminate')
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); -} |