Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/illegal_boz_arg_1.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
! { dg-do compile } program foo implicit none integer :: i = 42 print *, storage_size(z'1234') ! { dg-error "cannot be an actual" } print *, transfer(z'1234', i) ! { dg-error "cannot be an actual" } print *, transfer(i, z'1234') ! { dg-error "cannot be an actual" } print *, transfer(i, i, z'1234') ! { dg-error "must be INTEGER" } end program foo