Debian Codegraph @

gcc/testsuite/gfortran.dg/function_reference_1.f90

raw
1 ! { dg-do compile }
2 ! PR 44960 - this was erroneusly accepted.
3 ! Original test case by Daniel Franke.
4
5 type t
6 integer :: a
7 end type t
8 type(t) :: foo
9 print *, foo(1)%a ! { dg-error "Unexpected junk" }
10 end
11