diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-16 06:40:52 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-16 06:40:52 +0000 |
commit | fcf58632e1d3c4f06052ca818ad1c0485e763f39 (patch) | |
tree | 32a3bd41ae4fe487c060eb303b0bd60332762f27 /libgomp | |
parent | 547ca3bd8e3409e0a796c9daace21b8fb981e866 (diff) | |
download | gcc-fcf58632e1d3c4f06052ca818ad1c0485e763f39.tar.gz |
2009-11-16 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 154195
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@154196 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/pr42029.c | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index ba9393ed960..e36c7e2ca7f 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2009-11-13 Jakub Jelinek <jakub@redhat.com> + + PR middle-end/42029 + * libgomp.c/pr42029.c: New test. + 2009-10-26 Jakub Jelinek <jakub@redhat.com> * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many diff --git a/libgomp/testsuite/libgomp.c/pr42029.c b/libgomp/testsuite/libgomp.c/pr42029.c new file mode 100644 index 00000000000..ea7ac2c0986 --- /dev/null +++ b/libgomp/testsuite/libgomp.c/pr42029.c @@ -0,0 +1,19 @@ +/* PR middle-end/42029 */ +/* { dg-do run } */ + +extern void abort (void); + +int +main () +{ + int i; + _Complex int c = 0; + +#pragma omp parallel for private(i) reduction(+:c) + for (i = 0; i < 8; ++i) + c += 1; + + if (c != 8) + abort (); + return 0; +} |