Add PR check to suggest alternatives to using undef (#118506)
[llvm-project.git] / clang / test / Parser / matrix-type-disabled.c
blobccecd7eda20c930cb3b7b3ecfcc621a3d7c1d806
1 // RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only
3 // Matrix types are disabled by default.
5 #if __has_extension(matrix_types)
6 #error Expected extension 'matrix_types' to be disabled
7 #endif
9 typedef double dx5x5_t __attribute__((matrix_type(5, 5)));
10 // expected-error@-1 {{matrix types extension is disabled. Pass -fenable-matrix to enable it}}
12 void load_store_double(dx5x5_t *a, dx5x5_t *b) {
13 *a = *b;