[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / matrix-type-builtins-disabled.cpp
blobd88e87d74f77309503497a0ba3f425b5076eab8e
1 // RUN: %clang_cc1 %s -pedantic -std=c++11 -verify -triple=x86_64-apple-darwin9
3 // Make sure we fail without -fenable-matrix when
4 // __builtin_matrix_column_major_load is used to construct a new matrix type.
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}}