annotate gcc/testsuite/gfortran.dg/whole_file_17.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
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 ! { dg-options "-pedantic -fwhole-file" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! PR fortran/30668
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 integer(8) function two()
kono
parents:
diff changeset
8 two = 2
kono
parents:
diff changeset
9 end function two
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 CHARACTER(len=8) function string()
kono
parents:
diff changeset
12 string = "gfortran"
kono
parents:
diff changeset
13 end function string
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 program xx
kono
parents:
diff changeset
17 INTEGER :: a
kono
parents:
diff changeset
18 CHARACTER(len=4) :: s, string ! { dg-error "Character length mismatch" }
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 a = two() ! { dg-error "Return type mismatch" }
kono
parents:
diff changeset
21 s = string()
kono
parents:
diff changeset
22 end program xx