CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
43 lines
1.4 KiB
HLSL
43 lines
1.4 KiB
HLSL
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s -verify
|
|
|
|
// expected-note@*:* 108 {{candidate template ignored}}
|
|
|
|
// Test mul error cases via template overload resolution
|
|
|
|
// Inner dimension mismatch: vector * vector with different sizes
|
|
export float test_vec_dim_mismatch(float2 a, float3 b) {
|
|
return mul(a, b);
|
|
// expected-error@-1 {{no matching function for call to 'mul'}}
|
|
}
|
|
|
|
// Inner dimension mismatch: matrix * matrix
|
|
export float2x4 test_mat_dim_mismatch(float2x3 a, float4x4 b) {
|
|
return mul(a, b);
|
|
// expected-error@-1 {{no matching function for call to 'mul'}}
|
|
}
|
|
|
|
// Inner dimension mismatch: vector * matrix
|
|
export float3 test_vec_mat_mismatch(float3 v, float2x3 m) {
|
|
return mul(v, m);
|
|
// expected-error@-1 {{no matching function for call to 'mul'}}
|
|
}
|
|
|
|
// Inner dimension mismatch: matrix * vector
|
|
export float2 test_mat_vec_mismatch(float2x3 m, float2 v) {
|
|
return mul(m, v);
|
|
// expected-error@-1 {{no matching function for call to 'mul'}}
|
|
}
|
|
|
|
// Type mismatch: different element types
|
|
export float test_type_mismatch(float a, int b) {
|
|
return mul(a, b);
|
|
// expected-error@-1 {{no matching function for call to 'mul'}}
|
|
}
|
|
|
|
// Type mismatch: different vector element types
|
|
export float test_vec_type_mismatch(float3 a, int3 b) {
|
|
return mul(a, b);
|
|
// expected-error@-1 {{no matching function for call to 'mul'}}
|
|
}
|
|
|