diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-21 16:21:24 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-21 16:21:24 +0000 |
commit | 2f2c591f241c00a0d962363cdd5671fe99e21ec6 (patch) | |
tree | d017f51f43b8ed4de93b45a1a613096f63eb1d5e /libgomp | |
parent | 30e9871167ca729023eb527698fb483394252e00 (diff) | |
download | gcc-2f2c591f241c00a0d962363cdd5671fe99e21ec6.tar.gz |
PR c++/26691
* cp-gimplify.c (cxx_omp_clause_apply_fn): Handle default arguments.
* testsuite/libgomp.c++/pr26691.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112251 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/pr26691.C | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index f93bfa56371..33d1e78da2e 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2006-03-21 Jakub Jelinek <jakub@redhat.com> + + PR c++/26691 + * testsuite/libgomp.c++/pr26691.C: New test. + 2006-03-13 Jakub Jelinek <jakub@redhat.com> * testsuite/libgomp.fortran/retval2.f90: New test. diff --git a/libgomp/testsuite/libgomp.c++/pr26691.C b/libgomp/testsuite/libgomp.c++/pr26691.C new file mode 100644 index 00000000000..776b31e24fb --- /dev/null +++ b/libgomp/testsuite/libgomp.c++/pr26691.C @@ -0,0 +1,20 @@ +// PR c++/26691 + +struct A +{ + int n; + A (int i = 3) : n (i) {} +}; + +int +main () +{ + A a; + int err = 0; +#pragma omp parallel private (a) reduction (+:err) + if (a.n != 3) + err++; + + return err; + } + |