diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-08-08 16:53:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-08-08 16:53:22 +0000 |
commit | ffe56ea4c355b82c6fdbed4befc7fe3b956e35a2 (patch) | |
tree | 5cf1c5e9dcf25a5774d7a5c693d056f63e855ffa /test/Driver/openbsd.c | |
parent | 104a02fb6c96111ce06b53e282adfb2b4a59eeb6 (diff) |
Notes
Diffstat (limited to 'test/Driver/openbsd.c')
-rw-r--r-- | test/Driver/openbsd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Driver/openbsd.c b/test/Driver/openbsd.c index b4e2796c5d24..2bcd70377033 100644 --- a/test/Driver/openbsd.c +++ b/test/Driver/openbsd.c @@ -77,7 +77,9 @@ // Check linking against correct startup code when (not) using PIE // RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK-PIE %s -// RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd %s -fno-pie %s -### 2>&1 \ +// RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd -pie %s -### 2>&1 \ +// RUN: | FileCheck -check-prefix=CHECK-PIE-FLAG %s +// RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd -fno-pie %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK-PIE %s // RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd -static %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK-STATIC-PIE %s @@ -93,6 +95,7 @@ // RUN: | FileCheck -check-prefix=CHECK-NOPIE %s // CHECK-PIE: "{{.*}}crt0.o" // CHECK-PIE-NOT: "-nopie" +// CHECK-PIE-FLAG: "-pie" // CHECK-STATIC-PIE: "{{.*}}rcrt0.o" // CHECK-STATIC-PIE-NOT: "-nopie" // CHECK-NOPIE: "-nopie" "{{.*}}crt0.o" |