From 3374263a08d17263195df4e39d513d624fc06e5e Mon Sep 17 00:00:00 2001 From: Abid Qadeer Date: Tue, 3 Jun 2025 10:21:21 +0100 Subject: [PATCH] [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. --- flang/test/Lower/namelist.f90 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flang/test/Lower/namelist.f90 b/flang/test/Lower/namelist.f90 index ea97a0957c35..94b0ef11cb10 100644 --- a/flang/test/Lower/namelist.f90 +++ b/flang/test/Lower/namelist.f90 @@ -130,15 +130,15 @@ end ! CHECK-LABEL: c.func @_QPrename_sub subroutine rename_sub - use mmm, bbb => aaa + use mmm, ggg => aaa rrr = 3. ! CHECK: %[[V_4:[0-9]+]] = fir.call @_FortranAioBeginExternalListOutput ! CHECK: %[[V_5:[0-9]+]] = fir.address_of(@_QMmmmNaaa) : !fir.ref, i64, !fir.ref, !fir.ref>>>>, !fir.ref>> ! CHECK: %[[V_6:[0-9]+]] = fir.convert %[[V_5]] : (!fir.ref, i64, !fir.ref, !fir.ref>>>>, !fir.ref>>) -> !fir.ref> ! CHECK: %[[V_7:[0-9]+]] = fir.call @_FortranAioOutputNamelist(%[[V_4]], %[[V_6]]) fastmath : (!fir.ref, !fir.ref>) -> i1 ! CHECK: %[[V_8:[0-9]+]] = fir.call @_FortranAioEndIoStatement(%[[V_4]]) fastmath : (!fir.ref) -> i32 - write(*,bbb) + write(*,ggg) end -! CHECK-NOT: bbb +! CHECK-NOT: ggg ! CHECK: fir.string_lit "aaa\00"(4) : !fir.char<1,4>