projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aaf1dc
)
[test] Convert test for PR36720 to c89
author
Jonas Hahnfeld
<hahnjo@hahnjo.de>
Wed, 1 Aug 2018 06:26:55 +0000
(06:26 +0000)
committer
Jonas Hahnfeld
<hahnjo@hahnjo.de>
Wed, 1 Aug 2018 06:26:55 +0000
(06:26 +0000)
GCC 4.8.5 defaults to this old C standard. I think we should make the
tests pass a newer -std=c99|c11 but that's too intrusive for now...
Differential Revision: https://reviews.llvm.org/D50084
llvm-svn: 338490
openmp/runtime/test/tasking/bug_36720.c
patch
|
blob
|
history
diff --git
a/openmp/runtime/test/tasking/bug_36720.c
b/openmp/runtime/test/tasking/bug_36720.c
index
059d9c9
..
684d675
100644
(file)
--- a/
openmp/runtime/test/tasking/bug_36720.c
+++ b/
openmp/runtime/test/tasking/bug_36720.c
@@
-16,15
+16,17
@@
from inside the tasks, once again everything runs fine.
int main() {
#pragma omp task
{
+ int i;
#pragma omp parallel for
- for (i
nt i
= 0; i < N; i++)
+ for (i = 0; i < N; i++)
(void)0;
}
#pragma omp task
{
+ int i;
#pragma omp parallel for
- for (i
nt i
= 0; i < N; ++i)
+ for (i = 0; i < N; ++i)
(void)0;
}