1 // RUN: %clang_cc1 %s -pedantic -std=c++11 -verify -triple=x86_64-apple-darwin9
2 
3 // Make sure we fail without -fenable-matrix when
4 // __builtin_matrix_column_major_load is used to construct a new matrix type.
column_major_load_with_stride(int * Ptr)5 void 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