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
Merge C++ from gomp-20050608-branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
tpl-for-3.C
blob
0cafd9628b5d0143b95fd4176e4f779e19cc7fb3
1
// { dg-do compile }
2
3
void foo(int);
4
5
template<typename T> void bar()
6
{
7
#pragma omp parallel for
8
for (typename T::T i = 0; i < T::N; ++i)
9
foo(i);
10
}
11
12
struct A
13
{
14
typedef int T;
15
static T N;
16
};
17
18
struct B
19
{
20
typedef long T;
21
static T N;
22
};
23
24
void test()
25
{
26
bar<A>();
27
bar<B>();
28
}