PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / select_type_9.f03
blob62df6700e00eabf67ebfbc24987d618cca6e1f16
1 ! { dg-do compile }
3 ! PR 42053: [OOP] SELECT TYPE: reject duplicate CLASS IS blocks
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7  type :: t
8   integer :: i
9  end type
11  CLASS(t),pointer :: x
13  select type (x)
14  class is (t)
15   print *,"a"
16  class is (t)  ! { dg-error "Double CLASS IS block" }
17   print *,"b"
18  end select
20 end