URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [omp_atomic1.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }subroutine test_atomicinteger (kind = 4) :: ainteger :: breal :: c, fdouble precision :: dinteger, dimension (10) :: ea = 1b = 2c = 3d = 4e = 5f = 6!$omp atomica = a + 4!$omp atomicb = 4 - b!$omp atomicc = c * 2!$omp atomicd = 2 / d!$omp atomice = 1 ! { dg-error "must set a scalar variable" }!$omp atomica = a ** 8 ! { dg-error "assignment operator must be" }!$omp atomicb = b + 3 + b ! { dg-error "cannot reference" }!$omp atomicc = c - f + 1 ! { dg-error "not mathematically equivalent to" }!$omp atomica = ishft (a, 1) ! { dg-error "assignment intrinsic must be" }!$omp atomicc = min (c, 2.1, c) ! { dg-error "intrinsic arguments except one" }!$omp atomica = max (b, e(1)) ! { dg-error "intrinsic argument must be 'a'" }!$omp atomicd = 12 ! { dg-error "assignment must have an operator" }end subroutine test_atomic
