diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/c_sizeof_2.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/c_sizeof_2.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/c_sizeof_2.f90 b/gcc/testsuite/gfortran.dg/c_sizeof_2.f90 new file mode 100644 index 000000000..e16379747 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/c_sizeof_2.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! { dg-options "-std=f2003 -Wall -Wno-conversion" } +! Support F2008's c_sizeof() +! +USE ISO_C_BINDING, only: C_SIZE_T, c_sizeof ! { dg-error "new in Fortran 2008" } +integer(C_SIZE_T) :: i +i = c_sizeof(i) +end + |