David Majnemer | 8ef921a | 2014-10-27 20:02:19 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fms-compatibility -fexceptions -fcxx-exceptions -DMS_MODE -verify %s |
Hans Wennborg | 35bbf1c | 2014-06-10 20:46:38 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
| 3 | |
David Majnemer | 8ef921a | 2014-10-27 20:02:19 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -fms-compatibility -fexceptions -verify %s |
| 5 | // expected-no-diagnostics |
| 6 | |
| 7 | #if defined(MS_MODE) && defined(__EXCEPTIONS) |
Hans Wennborg | 35bbf1c | 2014-06-10 20:46:38 +0000 | [diff] [blame] | 8 | #error __EXCEPTIONS should not be defined. |
| 9 | #endif |