2015-09-06 14:46:46 -04:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// 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.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2016-07-23 16:47:26 -04:00
|
|
|
// UNSUPPORTED: libcpp-no-exceptions
|
|
|
|
|
|
|
|
|
|
// "support/test_macros.hpp"
|
|
|
|
|
|
|
|
|
|
// #define TEST_HAS_NO_EXCEPTIONS
|
2015-09-06 14:46:46 -04:00
|
|
|
|
2016-07-23 16:47:26 -04:00
|
|
|
#include "test_macros.h"
|
2015-09-06 14:46:46 -04:00
|
|
|
|
2016-07-23 16:47:26 -04:00
|
|
|
#if defined(TEST_HAS_NO_EXCEPTIONS)
|
|
|
|
|
#error macro defined unexpectedly
|
2015-09-06 14:46:46 -04:00
|
|
|
#endif
|
|
|
|
|
|
2016-07-23 16:47:26 -04:00
|
|
|
int main() {
|
|
|
|
|
try { ((void)0); } catch (...) {}
|
2015-09-06 14:46:46 -04:00
|
|
|
}
|