2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / size_kind_2.f90
blob002221c5b34d698431d592619c8cd57736cfa270
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" } }
17 ! { dg-final { cleanup-tree-dump "original" } }