================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c89 
-fms-compatibility-version=19.33 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C89_MSVC33 %s
+// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c99 
-fms-compatibility-version=19.33 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C99_MSVC33 %s
+// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c11 
-fms-compatibility-version=19.33 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C11_MSVC33 %s
+// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c89 
-fms-compatibility-version=19.39 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C89_MSVC39 %s
+// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c99 
-fms-compatibility-version=19.39 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C99_MSVC39 %s
+// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c11 
-fms-compatibility-version=19.39 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C11_MSVC39 %s
----------------
AaronBallman wrote:

```suggestion
// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c11 
-fms-compatibility-version=19.39 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C11_MSVC39 %s
// RUN: %clang_cc1 -E -dM -triple=arm64ec-windows-msvc -std=c11 
-fms-compatibility-version=19.40 -ffreestanding < /dev/null | FileCheck 
-check-prefix=C11_MSVC40 %s
```
Just to ensure that the compatibility check works for later versions of MSVC, 
not just the exact version we're testing for.

https://github.com/llvm/llvm-project/pull/117149
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to