10 lines · cpp
1// RUN: %clang_cl /TC /dev/null /E -Xclang -dM 2> /dev/null | FileCheck -match-full-lines %s --check-prefix=NOSTDC2// RUN: %clang_cl /TC /dev/null /E -Xclang -dM /Zc:__STDC__ 2> /dev/null | FileCheck -match-full-lines %s --check-prefix=YESSTDC3// __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=NOSTDC5// RUN: %clang_cl /dev/null /E -Xclang -dM /Zc:__STDC__ 2>&1 | FileCheck %s --check-prefix=ZCSTDCIGNORED6// YESSTDC: #define __STDC__ 17// NOSTDC-NOT: #define __STDC__ 18// ZCSTDCIGNORED-NOT: #define __STDC__ 19// ZCSTDCIGNORED: argument unused during compilation10