summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr68062.C
blob: 236a4885ac9441ec26f905b3763f9d80ef089ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-funsigned-char" } */

typedef char __attribute__ ((vector_size (4))) v4qi;
typedef unsigned char __attribute__ ((vector_size (4))) uv4qi;

v4qi v;
void ret(char a)
{
  v4qi c={a,a,a,a};
  uv4qi d={a,a,a,a};
  v = (c!=d);
}