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
[PATCH] RISC-V: Bugfix for unrecognizable insn for XTheadVector
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
tpl-for-1.C
blob
e036e64471519d2299fc2b903c26a83c79855acf
1
// { dg-do compile }
2
3
void foo(int);
4
void foo(long);
5
6
template<typename T> void bar()
7
{
8
#pragma omp for
9
for (T i = 0; i < 10; ++i)
10
foo(i);
11
}
12
13
void test()
14
{
15
bar<int>();
16
bar<long>();
17
}