Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/dec_structure_20.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-fdec-structure" } ! ! Test error handling for %FILL ! implicit none structure /s/ integer(2) i /3/ integer(2) %fill /4/ ! { dg-error "cannot have an initializer" } integer(2), pointer :: %fill ! { dg-error "cannot have attributes" } end structure type t integer %fill ! { dg-error "not allowed outside STRUCTURE" } endtype end