1 ! Test that module data access are lowered correctly in the different
3 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
8 ! Test simple access to the module data
9 ! CHECK-LABEL: func @_QMparentPtest1
11 ! CHECK: fir.address_of(@_QMparentEi) : !fir.ref<i32>
15 ! Test access to the module data inside an internal procedure where the
16 ! host is defined inside the module.
20 ! CHECK-LABEL: func @_QMparentFtest2Ptest2internal()
21 subroutine test2internal()
22 ! CHECK: fir.address_of(@_QMparentEi) : !fir.ref<i32>
28 ! Test access to the module data inside an internal procedure where the
29 ! host is using the module.
34 ! CHECK-LABEL: func @_QFtest3Ptest3internal()
35 subroutine test3internal()
36 ! CHECK: fir.address_of(@_QMparentEi) : !fir.ref<i32>