summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vector28.C
blob: ea48c9612446a72c925c1469386ccf23ec566782 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

typedef int veci __attribute__ ((vector_size (4 * sizeof (int))));
typedef float vecf __attribute__ ((vector_size (4 * sizeof (float))));

void f (veci *a, vecf *b, int c)
{
  *a = c || *b;
  *a = *a || c;
}