| 1 |
// PR c++/97900 |
| 2 |
// { dg-options "-Wno-psabi -w" } |
| 3 |
|
| 4 |
template<typename T> |
| 5 |
T test(T __attribute__((vector_size(2 * sizeof(T)))) vec) { |
| 6 |
return vec[0] + vec[1]; |
| 7 |
} |
| 8 |
typedef int v2si __attribute__((vector_size(2 * sizeof(int)))); |
| 9 |
int run(v2si vec) { |
| 10 |
return test<int>(vec); |
| 11 |
} |