[flang-commits] [flang] [flang] Update a test case for AIX (NFC) (PR #201865)
via flang-commits
flang-commits at lists.llvm.org
Fri Jun 5 08:42:02 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-driver
Author: Kelvin Li (kkwli)
<details>
<summary>Changes</summary>
-fdata-sections is specified by default on AIX. This patch is to adjust the testing for the case that the option is off and on by default.
---
Full diff: https://github.com/llvm/llvm-project/pull/201865.diff
1 Files Affected:
- (modified) flang/test/Driver/function-sections.f90 (+4-1)
``````````diff
diff --git a/flang/test/Driver/function-sections.f90 b/flang/test/Driver/function-sections.f90
index 7072d62a9d3e2..b40d2cbda11c0 100644
--- a/flang/test/Driver/function-sections.f90
+++ b/flang/test/Driver/function-sections.f90
@@ -5,9 +5,12 @@
! CHECK-DS: "-fdata-sections"
! CHECK-NODS-NOT: "-fdata-sections"
-! RUN: %flang -### %s 2>&1 \
+! RUN: %flang -### -target x86_64-none-linux-gnu %s 2>&1 \
! RUN: | FileCheck %s --check-prefix=CHECK-NOFS --check-prefix=CHECK-NODS
+! RUN: %flang -### -target powerpc64-ibm-aix-xcoff %s 2>&1 \
+! RUN: | FileCheck %s --check-prefix=CHECK-NOFS
+
! RUN: %flang -### %s -ffunction-sections 2>&1 \
! RUN: | FileCheck %s --check-prefix=CHECK-FS
``````````
</details>
https://github.com/llvm/llvm-project/pull/201865
More information about the flang-commits
mailing list