[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / symbol14.f90
blob611c43aea1f1f27d5ed516b0a9d08040a021e929
1 ! RUN: %python %S/test_symbols.py %s %flang_fc1
2 ! "Bare" uses of type parameters and components
4 !DEF: /MainProgram1/t1 DerivedType
5 !DEF: /MainProgram1/t1/k TypeParam INTEGER(4)
6 type :: t1(k)
7 !REF: /MainProgram1/t1/k
8 integer, kind :: k=666
9 !DEF: /MainProgram1/t1/a ObjectEntity REAL(4)
10 !REF: /MainProgram1/t1/k
11 real :: a(k)
12 end type t1
13 !REF: /MainProgram1/t1
14 !DEF: /MainProgram1/t2 DerivedType
15 type, extends(t1) :: t2
16 !DEF: /MainProgram1/t2/b ObjectEntity REAL(4)
17 !REF: /MainProgram1/t1/k
18 real :: b(k)
19 !DEF: /MainProgram1/t2/c ObjectEntity REAL(4)
20 !DEF: /MainProgram1/size INTRINSIC, PURE (Function) ProcEntity
21 !REF: /MainProgram1/t1/a
22 real :: c(size(a))
23 !REF: /MainProgram1/t1
24 !DEF: /MainProgram1/t2/x ObjectEntity TYPE(t1(k=666_4))
25 type(t1) :: x
26 end type t2
27 end program