coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / size_kind_2.f90
blobfe72ff55c058de20d32dc300b7fcbf4a73d9b916
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR fortran/57142
6 integer :: B(huge(1)+3_8,2_8)
7 integer(8) :: var1(2), var2, var3
9 var1 = shape(B,kind=8)
10 var2 = size(B,kind=8)
11 var3 = size(B,dim=1,kind=8)
12 end
14 ! { dg-final { scan-tree-dump "static integer.kind=8. A..\\\[2\\\] = \\\{2147483650, 2\\\};" "original" } }
15 ! { dg-final { scan-tree-dump "var2 = 4294967300;" "original" } }
16 ! { dg-final { scan-tree-dump "var3 = 2147483650;" "original" } }