Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/allocate_alloc_opt_5.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-std=f95" } program a implicit none integer n character(len=70) str integer, allocatable :: i(:) n = 42 allocate(i(4), source=n) ! { dg-error "Fortran 2003: SOURCE tag" } allocate(i(4), stat=n, errmsg=str) ! { dg-error "Fortran 2003: ERRMSG tag" } end program a