gcc/libgomp/testsuite/libgomp.c/atomic-18.c
Tom de Vries ca431befaa Remove -fopenmp in dg-options in libgomp.c
2015-06-15  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
	in dg-options.
	* testsuite/libgomp.c/atomic-3.c: Same.
	* testsuite/libgomp.c/debug-1.c: Same.
	* testsuite/libgomp.c/nqueens-1.c: Same.
	* testsuite/libgomp.c/pr26171.c: Same.
	* testsuite/libgomp.c/pr48591.c: Same.
	* testsuite/libgomp.c/pr64824.c: Same.
	* testsuite/libgomp.c/pr64868.c: Same.
	* testsuite/libgomp.c/pr66133.c: Same.
	* testsuite/libgomp.c/pr66199-1.c: Same.
	* testsuite/libgomp.c/pr66199-2.c: Same.
	* testsuite/libgomp.c/target-8.c: Same.

From-SVN: r224480
2015-06-15 13:26:12 +00:00

61 lines
728 B
C

/* PR c/64824 */
/* { dg-do run } */
void
f1 (void)
{
short a;
short b = 1;
int c = 3;
#pragma omp atomic capture
a = b = c << b;
if (b != 6 || a != 6)
__builtin_abort ();
}
void
f2 (void)
{
short a;
short b = 1;
int c = 3;
#pragma omp atomic capture
a = b = c + b;
if (b != 4 || a != 4)
__builtin_abort ();
}
void
f3 (void)
{
short a;
short b = 1;
long long int c = 3;
#pragma omp atomic capture
a = b = c + b;
if (b != 4 || a != 4)
__builtin_abort ();
}
void
f4 (void)
{
char a;
char b = 1;
long long int c = 3LL;
#pragma omp atomic capture
a = b = c << b;
if (b != 6 || a != 6)
__builtin_abort ();
}
int
main ()
{
f1 ();
f2 ();
f3 ();
f4 ();
return 0;
}