]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-104226.C
Regenerate riscv.opt.urls and i386.opt.urls
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-104226.C
CommitLineData
abea1c9a
JJ
1// PR c++/104226
2// { dg-do compile }
3// { dg-options "-Wno-psabi" }
4
5typedef unsigned short __attribute__((__vector_size__(16))) U;
6typedef unsigned int __attribute__((__vector_size__(16))) V;
7typedef unsigned int __attribute__((__vector_size__(32))) W;
8
9U
10foo (void)
11{
12 return __builtin_convertvector (__builtin_shufflevector ((V){}, (W){},
13 0, 0, 1, 0,
14 5, 5, 0, 2), U);
15}