2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_kind_int128_test1.f03
blob6be1ac20b64dc07a271f4636fe16bc3241232f63
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
3 ! { dg-require-effective-target fortran_integer_16 }
5 ! Note: int_fast*_t currently not supported.
7 subroutine c_kind_int128_1
8   use, intrinsic :: iso_c_binding
9   implicit none
11   integer(c_int128_t) :: a   ! { dg-error "has no IMPLICIT type" }
12   integer(c_int_least128_t) :: b   ! { dg-error "has no IMPLICIT type" }
13 ! integer(c_int_fast128_t) :: c   
14    
15 end subroutine c_kind_int128_1
17 subroutine c_kind_int128_2
18   use, intrinsic :: iso_c_binding
20   integer(c_int128_t) :: a   ! { dg-error "has not been declared or is a variable" }
21   integer(c_int_least128_t) :: b   ! { dg-error "has not been declared or is a variable" }
22 ! integer(c_int_fast128_t) :: c   
23    
24 end subroutine c_kind_int128_2