[clang] [HLSL] Add validation for the -enable-16bit-types option (PR #85340)

Natalie Chouinard via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 27 08:07:26 PDT 2024


================
@@ -0,0 +1,19 @@
+// RUN: not %clang_dxc -enable-16bit-types -T cs_6_0 -HV 2016 %s 2>&1  | FileCheck -check-prefix=both_invalid %s
+// RUN: not %clang_dxc -enable-16bit-types -T lib_6_4 -HV 2017 %s 2>&1 | FileCheck -check-prefix=HV_invalid %s
+// RUN: not %clang_dxc -enable-16bit-types -T cs_6_0 /HV 2021 %s 2>&1  | FileCheck -check-prefix=TP_invalid %s
+// RUN: %clang_dxc -enable-16bit-types -T lib_6_4 /HV 2021 %s 2>&1 -###   | FileCheck -check-prefix=valid %s
----------------
sudonatalie wrote:

This test should probably check 2018 now

https://github.com/llvm/llvm-project/pull/85340


More information about the cfe-commits mailing list