Debian Codegraph @

gcc/testsuite/g++.dg/ext/builtin-shufflevector-4.C

raw
1 // PR c++/106001
2 // { dg-do compile }
3
4 typedef int V __attribute__((vector_size (2 * sizeof (int))));
5
6 template <int>
7 void
8 foo ()
9 {
10 V v = {};
11 v = __builtin_shufflevector (v, v, static_cast<char>(1), static_cast<char>(0));
12 }
13
14 void
15 bar ()
16 {
17 foo <0> ();
18 }