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