repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduce class rtx_reader
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vector31.C
blob
a0568394315125e8c04a84b388d5ad7e333f2d68
1
// PR c++/71871
2
// { dg-do compile }
3
4
typedef unsigned int V __attribute__ ((__vector_size__ (32)));
5
6
template <int N>
7
void
8
foo (V *x)
9
{
10
V a = *x;
11
a = a ? a : -1;
12
*x = a;
13
}
14
15
template <typename T>
16
void
17
bar (T *x)
18
{
19
T a = *x;
20
a = a ? a : -1;
21
*x = a;
22
}
23
24
void
25
test (V *x, V *y)
26
{
27
foo<0> (x);
28
bar<V> (y);
29
}