diff options
Diffstat (limited to 'clang/test/Frontend/exceptions.c')
-rw-r--r-- | clang/test/Frontend/exceptions.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Frontend/exceptions.c b/clang/test/Frontend/exceptions.c index 4bbaaa39bfa..981b5b9045b 100644 --- a/clang/test/Frontend/exceptions.c +++ b/clang/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 |