Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/equiv_constraint_7.f90 @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-O0" } ! PR20890 - Equivalence cannot contain overlapping unequal initializers. ! Contributed by Joost VandeVondele <jv244@cam.ac.uk> ! Started out being in BLOCK DATA; however, blockdata variables must be in ! COMMON and therefore cannot have F95 style initializers.... MODULE DATA INTEGER :: I=1,J=2 EQUIVALENCE(I,J) ! { dg-error "Overlapping unequal initializers" } END MODULE DATA END