1 ! Check that symbols without SAVE attribute from an EQUIVALENCE
2 ! with at least one symbol being SAVEd (explicitly or implicitly)
3 ! have implicit SAVE attribute.
4 !RUN: %flang_fc1 -fdebug-dump-symbols %s | FileCheck %s
7 ! CHECK-LABEL: Subprogram scope: test1
8 ! CHECK: i1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4) init:1_4
9 ! CHECK: j1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4)
16 ! CHECK-LABEL: Subprogram scope: test2
17 ! CHECK: i1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4) init:1_4
18 ! CHECK: j1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4)
25 ! CHECK-LABEL: Subprogram scope: test3
26 ! CHECK: i1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4)
27 ! CHECK: j1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4)
28 ! CHECK: k1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4)
37 ! CHECK-LABEL: Subprogram scope: test4
38 ! CHECK: i1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4) init:1_4
39 ! CHECK: j1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4)
40 ! CHECK: k1, SAVE size=4 offset=0: ObjectEntity type: INTEGER(4)