5 extern "C" void abort();
7 #define vector __attribute__((vector_size(16)))
11 char __attribute__((vector_size(16))) vec;
12 char __attribute__((vector_size(16))) vec1;
14 operator __attribute__((vector_size(16))) short (void) {
15 return (__attribute__((vector_size(16))) short) vec;
18 operator __attribute__((vector_size(16))) unsigned int (void) {
19 return (__attribute__((vector_size(16))) unsigned int) vec1;
23 vec = (__attribute__((vector_size(16))) char) {'a', 'b', 'c', 'd', 'a', 'b', 'c', 'd',
24 'a', 'b', 'c', 'd', 'a', 'b', 'c', 'd'};
25 vec1 = (__attribute__((vector_size(16))) char) {'m', 'n', 'o', 'q', 'm', 'n', 'o', 'p',
26 'm', 'n', 'o', 'q', 'm', 'n', 'o', 'p'};
32 vector unsigned int v;
41 data.vs = (__attribute__((vector_size(16))) short) vh;
42 if (data.f[0] != 'a' || data.f[15] != 'd')
44 data.v = (__attribute__((vector_size(16))) unsigned int) vh;
45 if (data.f[0] != 'm' || data.f[15] != 'p')
51 /* Ignore a warning that is irrelevant to the purpose of this test. */
52 /* { dg-prune-output ".*GCC vector returned by reference.*" } */