Skip to content
Snippets Groups Projects
Commit aa689684 authored by Tobias Burnus's avatar Tobias Burnus
Browse files

libgomp.c-c++-common/target-link-2.c: Fix test on multi-device systems

libgomp/ChangeLog:

	* testsuite/libgomp.c-c++-common/target-link-2.c: Reset variable
	value to handle multi-device tests.
parent 083918a3
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,9 @@ int main() ...@@ -54,6 +54,9 @@ int main()
for (int i = 0; i < 10; i++) for (int i = 0; i < 10; i++)
if (res[i] != (4 + i)*10) if (res[i] != (4 + i)*10)
__builtin_abort (); __builtin_abort ();
for (int i = 0; i < 15; i++) /* Reset. */
arr[i] /= 10;
} }
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment