aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr105871.C
blob: 3623c1d1366369c8962e519f5902915d1780f7ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/105871
// { dg-do compile }
// { dg-options "-Wno-psabi" }

typedef __attribute__((__vector_size__ ( 1))) unsigned char U;
typedef __attribute__((__vector_size__ (16))) unsigned char V;

U
foo (void)
{
  return __builtin_shufflevector ((U){}, (V){}, 0);
}