Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
builtin-shufflevector-4.C
blob: dae129b11d6b41d2df3ffa0d9494a6dc812a5010 [
file
] [
log
] [
blame
]
// PR c++/106001
// { dg-do compile }
typedef
int
V __attribute__
((
vector_size
(
2
*
sizeof
(
int
))));
template
<int>
void
foo
()
{
V v
=
{};
v
=
__builtin_shufflevector
(
v
,
v
,
static_cast
<char>
(
1
),
static_cast
<char>
(
0
));
}
void
bar
()
{
foo
<
0
>
();
}