Home | History | Annotate | Download | only in test.support
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // UNSUPPORTED: libcpp-no-exceptions
     11 
     12 // "support/test_macros.hpp"
     13 
     14 // #define TEST_HAS_NO_EXCEPTIONS
     15 
     16 #include "test_macros.h"
     17 
     18 #if defined(TEST_HAS_NO_EXCEPTIONS)
     19 #error macro defined unexpectedly
     20 #endif
     21 
     22 int main() {
     23     try { ((void)0); } catch (...) {}
     24 }
     25