PR tree-optimization/67955
[official-gcc.git] / gcc / testsuite / g++.dg / ext / vector31.C
bloba0568394315125e8c04a84b388d5ad7e333f2d68
1 // PR c++/71871
2 // { dg-do compile }
4 typedef unsigned int V __attribute__ ((__vector_size__ (32)));
6 template <int N>
7 void
8 foo (V *x)
10   V a = *x;
11   a = a ? a : -1;
12   *x = a;
15 template <typename T>
16 void
17 bar (T *x)
19   T a = *x;
20   a = a ? a : -1;
21   *x = a;
24 void
25 test (V *x, V *y)
27   foo<0> (x);
28   bar<V> (y);