Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/pr95053_3.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 ! { dg-do compile } |
2 ! Related to PR 93499 - this used to ICE. | |
3 | |
4 program p | |
5 type t(n) | |
6 integer, kind :: n | |
7 end type t | |
8 type u(n) | |
9 integer, len :: n | |
10 end type u | |
11 type(t((0)/0)) :: x ! { dg-error "does not simplify to an INTEGER" } | |
12 type(t((0.)/0)) :: y ! { dg-error "must be of INTEGER type" } | |
13 type(u(0/(0.))) :: z ! { dg-error "must be of INTEGER type" } | |
14 end |