[flang-commits] [flang] [flang] Fix Funderscoring TC failure on AIX [NFC] (PR #73543)
via flang-commits
flang-commits at lists.llvm.org
Mon Nov 27 09:37:21 PST 2023
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/73543
>From c95e141bd24822e2634eeb8086e59ae1051b8668 Mon Sep 17 00:00:00 2001
From: Mark Danial <madanial at dixon.rtp.raleigh.ibm.com>
Date: Mon, 27 Nov 2023 10:36:47 -0500
Subject: [PATCH 1/2] [flang] Fix Funderscoring TC failure on AIX [NFC]
---
flang/test/Driver/underscoring.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang/test/Driver/underscoring.f90 b/flang/test/Driver/underscoring.f90
index 7c03d040504ea54..8a9ed80ea4daba1 100644
--- a/flang/test/Driver/underscoring.f90
+++ b/flang/test/Driver/underscoring.f90
@@ -21,4 +21,4 @@ subroutine test()
! NO-UNDERSCORING-NOT: ext_sub_
! NO-UNDERSCORING: {{ext_sub[^_]*$}}
! NO-UNDERSCORING-NOT: comblk_
-! NO-UNDERSCORING: comblk,
+! NO-UNDERSCORING: {{comblk[^_]*$}}
>From 8b0142160f54f37e7d46d68cfe93076a9b24ec92 Mon Sep 17 00:00:00 2001
From: Mark Danial <madanial at dixon.rtp.raleigh.ibm.com>
Date: Mon, 27 Nov 2023 10:59:07 -0500
Subject: [PATCH 2/2] [flang] TC changes to switch directories before rm (NFC)
---
flang/test/Driver/write-module.f90 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/flang/test/Driver/write-module.f90 b/flang/test/Driver/write-module.f90
index 0be5c5817ba9037..cf4be4306b6f569 100644
--- a/flang/test/Driver/write-module.f90
+++ b/flang/test/Driver/write-module.f90
@@ -9,6 +9,7 @@
! RUN: rm -rf %t && mkdir -p %t/dir-flang
! RUN: cd %t && %flang -fsyntax-only -module-dir %t/dir-flang %s
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
!--------------------------
! -module-dir<value>
@@ -16,6 +17,7 @@
! RUN: rm -rf %t && mkdir -p %t/dir-flang
! RUN: cd %t && %flang -fsyntax-only -module-dir%t/dir-flang %s
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
!---------------------------
! -J <value>
@@ -23,6 +25,7 @@
! RUN: rm -rf %t && mkdir -p %t/dir-flang
! RUN: cd %t && %flang -fsyntax-only -J %t/dir-flang %s
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
!------------------------------
! -J<value>
@@ -30,6 +33,7 @@
! RUN: rm -rf %t && mkdir -p %t/dir-flang
! RUN: cd %t && %flang -fsyntax-only -J%t/dir-flang %s
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
module testmodule
type::t2
More information about the flang-commits
mailing list