Workaround PR83046 in gang-static-2.c
2017-12-27 Tom de Vries <tom@codesourcery.com>
PR c++/83046
* testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
(test_nonstatic): Fix return type to workaround PR83046.
---
libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -14,7 +14,7 @@
__asm__ volatile ("mov.u32 %0,%%ctaid.x;" : "=r" (__r)); \
__r; }) : (I))
-int
+void
test_static(int *a, int num_gangs, int sarg)
{
int i, j;
@@ -27,7 +27,7 @@ test_static(int *a, int num_gangs, int sarg)
assert (a[i*sarg+j] == i % num_gangs);
}
-int
+void
test_nonstatic(int *a, int gangs)
{
int i, j;