Windows: Fix preprocessor output test.

This commit is contained in:
Frederich Munch 2017-02-08 01:05:23 -05:00 committed by sftnight
parent 49aacfc5e6
commit 630abbf855
2 changed files with 4 additions and 2 deletions

View File

@ -529,6 +529,8 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts,
PPOpts.addMacroDef("__CLING__clang__=" ClingStringify(__clang__));
#elif defined(__GNUC__)
PPOpts.addMacroDef("__CLING__GNUC__=" ClingStringify(__GNUC__));
#elif defined(_MSC_VER)
PPOpts.addMacroDef("__CLING__MSVC__=" ClingStringify(_MSC_VER));
#endif
// https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html

View File

@ -6,10 +6,10 @@
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// RUN: %cling -dM -E -xc++ /dev/null | grep CLING | FileCheck %s
// RUN: echo "" | %cling -dM -E -xc++ -std=c++11 | grep CLING | FileCheck %s
// CHECK: #define __CLING__ 1
// CHECK: #define __CLING__CXX11 1
// CHECK: #define __CLING__{{GNUC|clang}}
// CHECK: #define __CLING__{{GNUC|clang|MSVC}}
.q