openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.

* openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.

	* testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
	_Complex.

From-SVN: r222966
This commit is contained in:
Jason Merrill 2015-05-09 00:50:35 -04:00 committed by Jason Merrill
parent f8356d52f2
commit 1be0899d94
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2015-05-08 Jason Merrill <jason@redhat.com>
* testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
_Complex.
* openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
2015-05-06 Julian Brown <julian@codesourcery.com>
* oacc-init.c (acc_device_lock): Add explanatory comment.

View File

@ -39,7 +39,7 @@ extern "C" {
#endif
#if __cplusplus >= 201103
# define __GOACC_NOTHROW noexcept ()
# define __GOACC_NOTHROW noexcept
#elif __cplusplus
# define __GOACC_NOTHROW throw ()
#else /* Not C++ */

View File

@ -14,7 +14,7 @@ main(void)
{
const int n = 1000;
int i;
double complex vresult, result, array[n];
double _Complex vresult, result, array[n];
bool lvresult, lresult;
for (i = 0; i < n; i++)