annotate gcc/testsuite/gfortran.dg/derived_name_1.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! PR 20897
kono
parents:
diff changeset
3 ! Make sure intrinsic type names do not appear as names of derived types
kono
parents:
diff changeset
4 type integer ! { dg-error "cannot be the same as an intrinsic type" }
kono
parents:
diff changeset
5 type real ! { dg-error "cannot be the same as an intrinsic type" }
kono
parents:
diff changeset
6 type complex ! { dg-error "cannot be the same as an intrinsic type" }
kono
parents:
diff changeset
7 type character ! { dg-error "cannot be the same as an intrinsic type" }
kono
parents:
diff changeset
8 type logical ! { dg-error "cannot be the same as an intrinsic type" }
kono
parents:
diff changeset
9 type complex ! { dg-error "cannot be the same as an intrinsic type" }
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
10 type double precision
111
kono
parents:
diff changeset
11 type doubleprecision ! { dg-error "cannot be the same as an intrinsic type" }
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
12 type double complex
111
kono
parents:
diff changeset
13 type doublecomplex ! { dg-error "cannot be the same as an intrinsic type" }
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 type x
kono
parents:
diff changeset
16 integer y
kono
parents:
diff changeset
17 end type x
kono
parents:
diff changeset
18 end
kono
parents:
diff changeset
19