Mercurial > hg > CbC > CbC_gcc
comparison 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 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 ! { dg-do compile } | |
2 ! { dg-options "-pedantic -fwhole-file" } | |
3 ! | |
4 ! PR fortran/30668 | |
5 ! | |
6 | |
7 integer(8) function two() | |
8 two = 2 | |
9 end function two | |
10 | |
11 CHARACTER(len=8) function string() | |
12 string = "gfortran" | |
13 end function string | |
14 | |
15 | |
16 program xx | |
17 INTEGER :: a | |
18 CHARACTER(len=4) :: s, string ! { dg-error "Character length mismatch" } | |
19 | |
20 a = two() ! { dg-error "Return type mismatch" } | |
21 s = string() | |
22 end program xx |