| 1 |
// RUN: %clang_cl /TC /dev/null /E -Xclang -dM 2> /dev/null | FileCheck -match-full-lines %s --check-prefix=NOSTDC |
| 2 |
// RUN: %clang_cl /TC /dev/null /E -Xclang -dM /Zc:__STDC__ 2> /dev/null | FileCheck -match-full-lines %s --check-prefix=YESSTDC |
| 3 |
// __STDC__ should never be defined in C++ mode with fms-compatibility. |
| 4 |
// RUN: %clang_cl /dev/null /E -Xclang -dM 2>&1 | FileCheck %s --check-prefix=NOSTDC |
| 5 |
// RUN: %clang_cl /dev/null /E -Xclang -dM /Zc:__STDC__ 2>&1 | FileCheck %s --check-prefix=ZCSTDCIGNORED |
| 6 |
// YESSTDC: #define __STDC__ 1 |
| 7 |
// NOSTDC-NOT: #define __STDC__ 1 |
| 8 |
// ZCSTDCIGNORED-NOT: #define __STDC__ 1 |
| 9 |
// ZCSTDCIGNORED: argument unused during compilation |