opnsense-src/test/support/test.support/test_macros_header_exceptions.pass.cpp

25 lines
617 B
C++
Raw Normal View History

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