coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / oldstyle_1.f90
blob47c07cb82ad020d96e800bf8407e8795d554329e
1 ! { dg-do run }
2 integer i, j /1/, g/2/, h ! { dg-warning "" "" }
3 integer k, l(3) /2*2,1/ ! { dg-warning "" "" }
4 real pi /3.1416/, e ! { dg-warning "" "" }
6 if (j /= 1) call abort ()
7 if (g /= 2) call abort ()
8 if (any(l /= (/2,2,1/))) call abort ()
9 if (pi /= 3.1416) call abort ()
10 end