Use abort in parloops-exit-first-loop-alt-{3,4}.c
2015-06-23 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use abort. * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same. From-SVN: r224849
This commit is contained in:
parent
d88511aec7
commit
1222f22bd8
@ -1,3 +1,9 @@
|
||||
2015-06-23 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
|
||||
abort.
|
||||
* testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
|
||||
|
||||
2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
/* Variable bound, reduction. */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define N 4000
|
||||
|
||||
unsigned int *a;
|
||||
@ -25,9 +27,14 @@ main (void)
|
||||
unsigned int res;
|
||||
unsigned int array[N];
|
||||
int i;
|
||||
|
||||
for (i = 0; i < N; ++i)
|
||||
array[i] = i % 7;
|
||||
a = &array[0];
|
||||
|
||||
res = f (N);
|
||||
return !(res == 11995);
|
||||
if (res != 11995)
|
||||
abort ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
/* Constant bound, reduction. */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define N 4000
|
||||
|
||||
unsigned int *a;
|
||||
@ -29,5 +31,7 @@ main (void)
|
||||
array[i] = i % 7;
|
||||
a = &array[0];
|
||||
res = f ();
|
||||
return !(res == 11995);
|
||||
if (res != 11995)
|
||||
abort ();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user