Skip to content

Commit 3374263

Browse files
authored
[flang] Harden testcase by changing variable name. (#142363)
I noticed that this testcase was failing in a CI build because it has a `CHECK-NOT: bbb` while `bbb` could appear in the hashed global variable name. Improved the test by changing this name to `ggg` which can't appear in a hex string.
1 parent be9334a commit 3374263

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/test/Lower/namelist.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ module mmm
130130

131131
! CHECK-LABEL: c.func @_QPrename_sub
132132
subroutine rename_sub
133-
use mmm, bbb => aaa
133+
use mmm, ggg => aaa
134134
rrr = 3.
135135
! CHECK: %[[V_4:[0-9]+]] = fir.call @_FortranAioBeginExternalListOutput
136136
! CHECK: %[[V_5:[0-9]+]] = fir.address_of(@_QMmmmNaaa) : !fir.ref<tuple<!fir.ref<i8>, i64, !fir.ref<!fir.array<1xtuple<!fir.ref<i8>, !fir.ref<!fir.box<none>>>>>, !fir.ref<none>>>
137137
! CHECK: %[[V_6:[0-9]+]] = fir.convert %[[V_5]] : (!fir.ref<tuple<!fir.ref<i8>, i64, !fir.ref<!fir.array<1xtuple<!fir.ref<i8>, !fir.ref<!fir.box<none>>>>>, !fir.ref<none>>>) -> !fir.ref<tuple<>>
138138
! CHECK: %[[V_7:[0-9]+]] = fir.call @_FortranAioOutputNamelist(%[[V_4]], %[[V_6]]) fastmath<contract> : (!fir.ref<i8>, !fir.ref<tuple<>>) -> i1
139139
! CHECK: %[[V_8:[0-9]+]] = fir.call @_FortranAioEndIoStatement(%[[V_4]]) fastmath<contract> : (!fir.ref<i8>) -> i32
140-
write(*,bbb)
140+
write(*,ggg)
141141
end
142142

143-
! CHECK-NOT: bbb
143+
! CHECK-NOT: ggg
144144
! CHECK: fir.string_lit "aaa\00"(4) : !fir.char<1,4>

0 commit comments

Comments
 (0)