|
76 | 76 | ! |
77 | 77 | ! On AIX, -pie is never passed to the linker. |
78 | 78 | ! 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 |
80 | 80 | ! 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 |
82 | 82 | ! 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 |
84 | 84 | ! |
85 | 85 | ! On MinGW and Windows, -pie may be specified, but it is ignored. |
86 | 86 | ! 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 |
88 | 88 | ! 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 |
90 | 90 | ! 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 |
92 | 92 | ! 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 |
94 | 94 | ! 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 |
96 | 96 | ! 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 |
98 | 98 | ! |
99 | 99 | ! PIE: "-pie" |
100 | 100 | ! NO-PIE-NOT: "-pie" |
| 101 | +! UNUSED: warning: argument unused during compilation: '{{(-no)?}}-pie' |
101 | 102 | ! ------------------------------------------------------------------------------ |
102 | 103 |
|
103 | 104 | program hello |
|
0 commit comments