aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr104505.c
blob: 2fc3bb99ddc209ab89cbc1e20f9b7902f1c07123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-additional-options "-Wno-psabi" } */

typedef char __attribute__((__vector_size__ (8))) U;
typedef short __attribute__((__vector_size__ (16))) V;

U u;

void
foo (V v)
{
  u = __builtin_shufflevector (u, u, __builtin_convertvector (v, U)); /* { dg-error "invalid element index" } */
}