Commit 1be0899d by Jason Merrill Committed by Jason Merrill

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
parent f8356d52
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> 2015-05-06 Julian Brown <julian@codesourcery.com>
* oacc-init.c (acc_device_lock): Add explanatory comment. * oacc-init.c (acc_device_lock): Add explanatory comment.
......
...@@ -39,7 +39,7 @@ extern "C" { ...@@ -39,7 +39,7 @@ extern "C" {
#endif #endif
#if __cplusplus >= 201103 #if __cplusplus >= 201103
# define __GOACC_NOTHROW noexcept () # define __GOACC_NOTHROW noexcept
#elif __cplusplus #elif __cplusplus
# define __GOACC_NOTHROW throw () # define __GOACC_NOTHROW throw ()
#else /* Not C++ */ #else /* Not C++ */
......
...@@ -14,7 +14,7 @@ main(void) ...@@ -14,7 +14,7 @@ main(void)
{ {
const int n = 1000; const int n = 1000;
int i; int i;
double complex vresult, result, array[n]; double _Complex vresult, result, array[n];
bool lvresult, lresult; bool lvresult, lresult;
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment