9 lines · cpp
1// RUN: %clang_cc1 %s -pedantic -std=c++11 -verify -triple=x86_64-apple-darwin92 3// Make sure we fail without -fenable-matrix when4// __builtin_matrix_column_major_load is used to construct a new matrix type.5void column_major_load_with_stride(int *Ptr) {6 auto m = __builtin_matrix_column_major_load(Ptr, 2, 2, 2);7 // expected-error@-1 {{matrix types extension is disabled. Pass -fenable-matrix to enable it}}8}9