Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
ivdep-1.C
blob: 751154deba8d057203f1fe938e0789d998d13026 [
file
] [
log
] [
blame
]
// PR c++/60267
// { dg-do compile }
// { dg-options "-O3" }
template
<
int
N
>
void
foo
(
int
*
a
,
int
*
b
,
int
*
c
)
{
#pragma
GCC ivdep
for
(
int
i
=
0
;
i
<
N
;
i
++)
a
[
i
]
=
b
[
i
]
*
c
[
i
];
}
void
bar
(
int
*
a
,
int
*
b
,
int
*
c
)
{
foo
<
64
>
(
a
,
b
,
c
);
}