Skip to content

Commit 7b3c93d

Browse files
committed
update tests to confirm matrix_type can not be larger than 4 per dim
1 parent 95801e7 commit 7b3c93d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang/test/SemaHLSL/BuiltIns/matrix-basic_types-errors.hlsl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ uint16_t4x4 mat2;
1010
matrix<int, 5, 5> mat3;
1111
// expected-error@-1 {{constraints not satisfied for alias template 'matrix' [with element = int, rows_count = 5, cols_count = 5]}}
1212
// expected-note@* {{because '5 <= 4' (5 <= 4) evaluated to false}}
13+
14+
using float8x4 = __attribute__((matrix_type(8,4))) float;
15+
// expected-error@-1 {{matrix row size too large}}
16+
17+
using float4x8 = __attribute__((matrix_type(4,8))) float;
18+
// expected-error@-1 {{matrix column size too large}}

0 commit comments

Comments
 (0)