diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-13 23:31:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-13 23:31:40 +0000 |
commit | 47e879dfa735f81472a51b1bd69cc4eb9159db39 (patch) | |
tree | 2fa82be2df93bf6924e104eddb187ef899c8a0b2 /test/Driver/darwin-ld.c | |
parent | bc25f19da3cff74cb0ad4f228e9beca99ed56582 (diff) |
Driver/Darwin: Pass -pie/-no_pie to the linker when -fpie/-fno-pie and friends
are explicitly given.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/darwin-ld.c')
-rw-r--r-- | test/Driver/darwin-ld.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Driver/darwin-ld.c b/test/Driver/darwin-ld.c index 0a89895676..448446885a 100644 --- a/test/Driver/darwin-ld.c +++ b/test/Driver/darwin-ld.c @@ -70,3 +70,15 @@ // LINK_IPHONE_3_1: ld" // LINK_IPHONE_3_1-NOT: -lbundle1.o // LINK_IPHONE_3_1: -lSystem + +// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -fpie %t.o 2> %t.log +// RUN: FileCheck -check-prefix=LINK_EXPLICIT_PIE %s < %t.log +// +// LINK_EXPLICIT_PIE: ld" +// LINK_EXPLICIT_PIE: "-pie" + +// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -fno-pie %t.o 2> %t.log +// RUN: FileCheck -check-prefix=LINK_EXPLICIT_NO_PIE %s < %t.log +// +// LINK_EXPLICIT_NO_PIE: ld" +// LINK_EXPLICIT_NO_PIE: "-no_pie" |