Skip to content

Commit 283cf81

Browse files
committed
Also check for an unused argument warning on certain platforms
1 parent 3f79259 commit 283cf81

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

flang/test/Driver/linker-options.f90

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,29 @@
7676
!
7777
! On AIX, -pie is never passed to the linker.
7878
! RUN: %flang -target powerpc64-unknown-aix -### %s 2>&1 \
79-
! RUN: | FileCheck %s --check-prefix=NO-PIE
79+
! RUN: | FileCheck %s --check-prefixes=NO-PIE
8080
! RUN: %flang -target powerpc64-unknown-aix -pie -### %s 2>&1 \
81-
! RUN: | FileCheck %s --check-prefix=NO-PIE
81+
! RUN: | FileCheck %s --check-prefixes=NO-PIE,UNUSED
8282
! RUN: %flang -target powerpc64-unknown-aix -no-pie -### %s 2>&1 \
83-
! RUN: | FileCheck %s --check-prefix=NO-PIE
83+
! RUN: | FileCheck %s --check-prefixes=NO-PIE,UNUSED
8484
!
8585
! On MinGW and Windows, -pie may be specified, but it is ignored.
8686
! RUN: %flang -target aarch64-pc-windows-gnu -### %s 2>&1 \
87-
! RUN: | FileCheck %s --check-prefix=NO-PIE
87+
! RUN: | FileCheck %s --check-prefixes=NO-PIE
8888
! RUN: %flang -target x86_64-pc-windows-gnu -pie -### %s 2>&1 \
89-
! RUN: | FileCheck %s --check-prefix=NO-PIE
89+
! RUN: | FileCheck %s --check-prefixes=NO-PIE,UNUSED
9090
! RUN: %flang -target i686-pc-windows-gnu -no-pie -### %s 2>&1 \
91-
! RUN: | FileCheck %s --check-prefix=NO-PIE
91+
! RUN: | FileCheck %s --check-prefixes=NO-PIE,UNUSED
9292
! RUN: %flang -target aarch64-windows-msvc -### %s 2>&1 \
93-
! RUN: | FileCheck %s --check-prefix=NO-PIE
93+
! RUN: | FileCheck %s --check-prefixes=NO-PIE
9494
! RUN: %flang -target aarch64-windows-msvc -pie -### %s 2>&1 \
95-
! RUN: | FileCheck %s --check-prefix=NO-PIE
95+
! RUN: | FileCheck %s --check-prefixes=NO-PIE,UNUSED
9696
! RUN: %flang -target aarch64-windows-msvc -no-pie -### %s 2>&1 \
97-
! RUN: | FileCheck %s --check-prefix=NO-PIE
97+
! RUN: | FileCheck %s --check-prefixes=NO-PIE,UNUSED
9898
!
9999
! PIE: "-pie"
100100
! NO-PIE-NOT: "-pie"
101+
! UNUSED: warning: argument unused during compilation: '{{(-no)?}}-pie'
101102
! ------------------------------------------------------------------------------
102103

103104
program hello

0 commit comments

Comments
 (0)