xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/exceptions.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fms-compatibility -fexceptions -fcxx-exceptions -DMS_MODE -verify %s
2*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fms-compatibility -fexceptions -verify %s
5*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc #if defined(MS_MODE) && defined(__EXCEPTIONS)
8*0a6a1f1dSLionel Sambuc #error __EXCEPTIONS should not be defined.
9*0a6a1f1dSLionel Sambuc #endif
10