You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/SemaHLSL/Types/BuiltinMatrix/matrix-cast.hlsl
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -106,33 +106,33 @@ void f5() {
106
106
matrix_3_3<float> f32_3x3;
107
107
matrix_3_3<double> f64_3x3;
108
108
matrix_4_4<double> f64_4x4;
109
-
matrix_4_4<signed int> i32_4x4;
110
-
matrix_3_3<unsignedint> u32_3x3;
111
-
matrix_4_4<unsignedint> u32_4x4;
109
+
matrix_4_4<int> i32_4x4;
110
+
matrix_3_3<uint> u32_3x3;
111
+
matrix_4_4<uint> u32_4x4;
112
112
float f;
113
113
114
114
f64_3x3 = (matrix_3_3<double>)f32_3x3;
115
115
f64_4x4 = (matrix_4_4<double>)f32_3x3; // expected-error {{conversion between matrix types 'matrix_4_4<double>' (aka 'matrix<double, 4, 4>') and 'matrix<float, 3, 3>' of different size is not allowed}}
116
-
i32_4x4 = (matrix_4_4<signed int>)f64_4x4;
117
-
u32_3x3 = (matrix_4_4<unsignedint>)i32_4x4; // expected-error {{assigning to 'matrix<[...], 3, 3>' from incompatible type 'matrix<[...], 4, 4>'}}
118
-
u32_4x4 = (matrix_4_4<unsignedint>)i32_4x4;
119
-
i32_4x4 = (matrix_4_4<signed int>)u32_4x4;
116
+
i32_4x4 = (matrix_4_4<int>)f64_4x4;
117
+
u32_3x3 = (matrix_4_4<uint>)i32_4x4; // expected-error {{assigning to 'matrix<[...], 3, 3>' from incompatible type 'matrix<[...], 4, 4>'}}
f64_4x4 = static_cast<matrix_4_4<double>>(f32_3x3); // expected-error {{conversion between matrix types 'matrix_4_4<double>' (aka 'matrix<double, 4, 4>') and 'matrix<float, 3, 3>' of different size is not allowed}}
0 commit comments