[clang] [HLSL] Fix vector list initialization (PR #161421)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 2 13:19:30 PDT 2025
================
@@ -14,7 +14,7 @@ void entry() {
// parameters to an initialization list
// CHECK-LABEL: VarDecl {{.*}} used Vec2 'float2':'vector<float, 2>' cinit
// CHECK-NEXT: CXXFunctionalCastExpr {{.*}} 'float2':'vector<float, 2>' functional cast to float2 <NoOp>
-// CHECK-NEXT: InitListExpr {{.*}} 'float2':'vector<float, 2>'
+// CHECK-NEXT: InitListExpr {{0x[0-9a-fA-F]+}} <col:{{[0-9]+}}, col:{{[0-9]+}}> 'float2':'vector<float, 2>'
----------------
farzonl wrote:
that would work, but I asked chris to add a test to confirm columns were set so he needed hex to capture the address and then the numeric check for col start end to capture what I asked him to do.
https://github.com/llvm/llvm-project/pull/161421
More information about the cfe-commits
mailing list