Skip to content

Commit e9b2a07

Browse files
authored
[flang] Modify lto testcase for AIX (#74496)
Change the lto-flags test case to check for `-bdbg:thinlto` on AIX --------- Co-authored-by: Mark Danial <[email protected]>
1 parent 81d1df2 commit e9b2a07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flang/test/Driver/lto-flags.f90

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111

1212
! Also check linker plugin opt for Thin LTO
1313
! RUN: %flang -### -flto=thin %s 2>&1 | FileCheck %s \
14-
! RUN: --check-prefixes=%if system-darwin %{THIN-LTO-ALL%} \
14+
! RUN: --check-prefixes=%if system-darwin || system-aix %{THIN-LTO-ALL%} \
1515
! RUN: %else %{THIN-LTO-ALL,THIN-LTO-LINKER-PLUGIN%}
1616

17+
! RUN: %flang -### -flto=thin --target=powerpc64-aix %s 2>&1 | FileCheck %s \
18+
! RUN: --check-prefix THIN-LTO-LINKER-AIX
19+
1720
! RUN: not %flang -### -S -flto=somelto %s 2>&1 | FileCheck %s --check-prefix=ERROR
1821

1922
! FC1 tests. Check that it does not crash.
@@ -31,5 +34,6 @@
3134
! THIN-LTO-ALL: "-fc1"
3235
! THIN-LTO-ALL-SAME: "-flto=thin"
3336
! THIN-LTO-LINKER-PLUGIN: "-plugin-opt=thinlto"
37+
! THIN-LTO-LINKER-AIX: "-bdbg:thinlto"
3438

3539
! ERROR: error: unsupported argument 'somelto' to option '-flto=

0 commit comments

Comments
 (0)