Debian Codegraph @

clang/test/Parser/matrix-type-disabled.c

raw
1 // RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only
2
3 // Matrix types are disabled by default.
4
5 #if __has_extension(matrix_types)
6 #error Expected extension 'matrix_types' to be disabled
7 #endif
8
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}}
11
12 void load_store_double(dx5x5_t *a, dx5x5_t *b) {
13 *a = *b;
14 }