OSDN Git Service

PR c++/46124
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / torture / pr38565.C
1 // { dg-do compile }
2 // Ignore warning on some powerpc-linux configurations.
3 // { dg-prune-output "non-standard ABI extension" }
4 #define vector __attribute__((vector_size(16) ))
5 vector unsigned int f(int a)
6 {
7   vector unsigned int mask = a ? (vector unsigned int){ 0x80000000, 0x80000000,
8 0x80000000, 0x80000000 } : (vector unsigned int){0};
9   return mask;
10 }
11