blob: 981b5b9045b518731038f98a031817e3d1a421fd [file] [log] [blame]
David Majnemer8ef921a2014-10-27 20:02:19 +00001// RUN: %clang_cc1 -fms-compatibility -fexceptions -fcxx-exceptions -DMS_MODE -verify %s
Hans Wennborg35bbf1c2014-06-10 20:46:38 +00002// expected-no-diagnostics
3
David Majnemer8ef921a2014-10-27 20:02:19 +00004// RUN: %clang_cc1 -fms-compatibility -fexceptions -verify %s
5// expected-no-diagnostics
6
7#if defined(MS_MODE) && defined(__EXCEPTIONS)
Hans Wennborg35bbf1c2014-06-10 20:46:38 +00008#error __EXCEPTIONS should not be defined.
9#endif