diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-13 19:36:19 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-13 19:36:19 +0000 |
commit | 6d63fc03509903fa780735cbbe53190b36bacb26 (patch) | |
tree | 9b349467185d46d153a5e9a251dfd5c2fc20e659 /gcc/testsuite/gcc.dg/gomp | |
parent | 7730fe9c50c89168f8eddbd017b4a34ccf56cec5 (diff) | |
download | gcc-6d63fc03509903fa780735cbbe53190b36bacb26.tar.gz |
PR middle-end/25989
* omp-low.c (expand_omp_for_generic): Mark istart0
and iend0 as addressable.
* gcc.dg/gomp/pr25989.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/pr25989.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/pr25989.c b/gcc/testsuite/gcc.dg/gomp/pr25989.c new file mode 100644 index 00000000000..39bd4b77c5e --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/pr25989.c @@ -0,0 +1,16 @@ +/* PR middle-end/25989 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -fopenmp" } */ + +int +main (void) +{ + int i, j; + float a, b = 1.0; + +#pragma omp parallel for schedule(guided,1) private(j) + for (i = 1; i <= 9; i++) + for (j = 1; j <= 9; j++) + a = b; + return 0; +} |