From: Sa Liu Date: Thu, 15 May 2008 12:59:49 +0000 (+0000) Subject: Test int128 when -std=f2003 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96d5b5284e4a4a3b777c80899f80ae939fbb553e;p=gcc.git Test int128 when -std=f2003 From-SVN: r135347 --- diff --git a/gcc/testsuite/gfortran.dg/c_kind_int128_test1.f03 b/gcc/testsuite/gfortran.dg/c_kind_int128_test1.f03 new file mode 100644 index 00000000000..6be1ac20b64 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/c_kind_int128_test1.f03 @@ -0,0 +1,24 @@ +! { dg-do compile } +! { dg-options "-std=f2003" } +! { dg-require-effective-target fortran_integer_16 } +! +! Note: int_fast*_t currently not supported. + +subroutine c_kind_int128_1 + use, intrinsic :: iso_c_binding + implicit none + + integer(c_int128_t) :: a ! { dg-error "has no IMPLICIT type" } + integer(c_int_least128_t) :: b ! { dg-error "has no IMPLICIT type" } +! integer(c_int_fast128_t) :: c + +end subroutine c_kind_int128_1 + +subroutine c_kind_int128_2 + use, intrinsic :: iso_c_binding + + integer(c_int128_t) :: a ! { dg-error "has not been declared or is a variable" } + integer(c_int_least128_t) :: b ! { dg-error "has not been declared or is a variable" } +! integer(c_int_fast128_t) :: c + +end subroutine c_kind_int128_2