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
libstdc++: AIX xfail for_overwrite.cc testcase
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c++
/
loop-7.C
blob
4eccb7fca01f640959dba8baf922bbe2bb80dd70
1
// PR c++/24502
2
// { dg-do run }
3
4
extern "C" void abort ();
5
6
template <typename T> T
7
foo (T r)
8
{
9
T i;
10
#pragma omp for
11
for (i = 0; i < 10; i++)
12
r += i;
13
return r;
14
}
15
16
int
17
main ()
18
{
19
if (foo (0) != 10 * 9 / 2 || foo (2L) != 10L * 9 / 2 + 2)
20
abort ();
21
return 0;
22
}