summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/function_reference_1.f90
blob: be634c9dd4b271c8c3fba4b55d03838398d67ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
! PR 44960 - this was erroneusly accepted.
! Original test case by Daniel Franke.

type t
  integer :: a
end type t
type(t) :: foo
print *, foo(1)%a ! { dg-error "Unexpected junk" }
end