aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/pr58950.C
blob: 10a2032440f012885c4b58b5cef1272a3e9d94c0 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-Wall" } */

void f(){
  int i __attribute__((vector_size(2*sizeof(int)))) = { 2, 3 };
  __builtin_shuffle (i, i); /* { dg-warning "value computed is not used" } */
  ++i?1:0; /* { dg-warning "value computed is not used" } */
}