aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/c_sizeof_2.f90
blob: f6c3077f83ddd0ec1fb7a1d9a5fa0938477775d6 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! { dg-options "-std=f2003 -Wall" }
! Support F2008's c_sizeof()
!
integer(4) :: i, j(10)
i = c_sizeof(i) ! { dg-error "not included in the selected standard" }
i = c_sizeof(j) ! { dg-error "not included in the selected standard" }
end