Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/pr67525.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! PR fortran/67525 | |
3 ! Code contributed by Gerhard Steinmetz | |
4 ! | |
5 real function f(x) | |
6 select type (x) ! { dg-error "shall be polymorphic" } | |
7 end select | |
8 end function f | |
9 | |
10 real function g(x) | |
11 select type (x=>null()) ! { dg-error "shall be polymorphic" } | |
12 end select | |
13 end function g | |
14 | |
15 subroutine a(x) | |
16 select type (x) ! { dg-error "shall be polymorphic" } | |
17 end select | |
18 end subroutine a |