diff options
Diffstat (limited to 'test/libcxx/depr/exception.unexpected/unexpected.pass.cpp')
| -rw-r--r-- | test/libcxx/depr/exception.unexpected/unexpected.pass.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/libcxx/depr/exception.unexpected/unexpected.pass.cpp b/test/libcxx/depr/exception.unexpected/unexpected.pass.cpp deleted file mode 100644 index 7a84b92ca98a8..0000000000000 --- a/test/libcxx/depr/exception.unexpected/unexpected.pass.cpp +++ /dev/null @@ -1,28 +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 unexpected - -// MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -#define _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -#include <exception> -#include <cstdlib> -#include <cassert> - -void fexit() -{ - std::exit(0); -} - -int main() -{ - std::set_unexpected(fexit); - std::unexpected(); - assert(false); -} |
