1 // RUN: %clang_cc1 -fenable-matrix -fsyntax-only -verify %s -std=c++11
3 using Matrix
= int __attribute__((matrix_type(4, 3)));
5 template <__SIZE_TYPE__ a
, __SIZE_TYPE__ b
>
6 using TMatrix
= int __attribute__((matrix_type(a
, b
)));
9 void* operator new(__SIZE_TYPE__
, int);
10 void* operator new(__SIZE_TYPE__
, Matrix
);
11 void* operator new(__SIZE_TYPE__
, TMatrix
<2, 2>);
24 new (m
[1]) S
{}; // expected-error {{single subscript expressions are not allowed for matrix values}}
25 new (tm
[1]) S
{}; // expected-error {{single subscript expressions are not allowed for matrix values}}