[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / ms-define-stdc.c
blobd5e873d21a76b595fe112faaca78ec64c0f06bef
1 // Note: %s must be preceded by --, otherwise it may be interpreted as a
2 // command-line option, e.g. on Mac where %s is commonly under /Users.
3 //
4 // Note: see also cl-zc.cpp
6 // RUN: %clang_cl /TC /dev/null /E -Xclang -dM /Zc:__STDC__- 2>&1 | FileCheck %s --check-prefix=ZCSTDCIGNORED
7 // ZCSTDCIGNORED-NOT: #define __STDC__ 1
8 // ZCSTDCIGNORED: argument unused during compilation
10 // RUN: not %clang -Xclang -fno-ms-define-stdc %s 2>&1 | FileCheck %s --check-prefix="NOARG"
11 // NOARG: error: unknown argument: '-fno-ms-define-stdc'