diff options
Diffstat (limited to 'test/Frontend/exceptions.c')
-rw-r--r-- | test/Frontend/exceptions.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Frontend/exceptions.c b/test/Frontend/exceptions.c index 4bbaaa3..981b5b9 100644 --- a/test/Frontend/exceptions.c +++ b/test/Frontend/exceptions.c @@ -1,6 +1,9 @@ -// RUN: %clang_cc1 -fms-compatibility -fexceptions -fcxx-exceptions -verify %s +// RUN: %clang_cc1 -fms-compatibility -fexceptions -fcxx-exceptions -DMS_MODE -verify %s // expected-no-diagnostics -#if defined(__EXCEPTIONS) +// RUN: %clang_cc1 -fms-compatibility -fexceptions -verify %s +// expected-no-diagnostics + +#if defined(MS_MODE) && defined(__EXCEPTIONS) #error __EXCEPTIONS should not be defined. #endif |