mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 19:26:06 +00:00

GCC defines __EXCEPTIONS, regardless of language mode, if -fexceptions is passed. We should do the same. This fixes PR21358. llvm-svn: 220714
10 lines
303 B
C
10 lines
303 B
C
// RUN: %clang_cc1 -fms-compatibility -fexceptions -fcxx-exceptions -DMS_MODE -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
// RUN: %clang_cc1 -fms-compatibility -fexceptions -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
#if defined(MS_MODE) && defined(__EXCEPTIONS)
|
|
#error __EXCEPTIONS should not be defined.
|
|
#endif
|