diff options
author | Brad Smith <brad@comstyle.com> | 2014-06-24 19:51:29 +0000 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2014-06-24 19:51:29 +0000 |
commit | 966b78f470606a5c7cb8e810d4aeeffe62f49979 (patch) | |
tree | 32edfa5b330b478edeef5e802f008ac6235d8196 /test | |
parent | cd6ef194d0ede7c4cb23667d7cba19f0425183a6 (diff) | |
download | clang-966b78f470606a5c7cb8e810d4aeeffe62f49979.tar.gz clang-966b78f470606a5c7cb8e810d4aeeffe62f49979.tar.bz2 clang-966b78f470606a5c7cb8e810d4aeeffe62f49979.tar.xz |
Use appropriate default PIE settings for OpenBSD.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Driver/pic.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Driver/pic.c b/test/Driver/pic.c index c3b2bbe32f..3629cc4735 100644 --- a/test/Driver/pic.c +++ b/test/Driver/pic.c @@ -201,7 +201,17 @@ // RUN: | FileCheck %s --check-prefix=CHECK-NO-PIC // // On OpenBSD, PIE is enabled by default, but can be disabled. +// RUN: %clang -c %s -target amd64-pc-openbsd -### 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-PIE1 // RUN: %clang -c %s -target i386-pc-openbsd -### 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-PIE1 +// RUN: %clang -c %s -target mips64-unknown-openbsd -### 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-PIE1 +// RUN: %clang -c %s -target mips64el-unknown-openbsd -### 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-PIE1 +// RUN: %clang -c %s -target powerpc-unknown-openbsd -### 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-PIE2 +// RUN: %clang -c %s -target sparc64-unknown-openbsd -### 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-PIE2 // RUN: %clang -c %s -target i386-pc-openbsd -fno-pie -### 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NO-PIC |