summaryrefslogtreecommitdiff
path: root/test/Driver/ps4-linker-non-win.c
diff options
context:
space:
mode:
authorEkaterina Romanova <katya_romanova@playstation.sony.com>2015-10-14 01:09:02 +0000
committerEkaterina Romanova <katya_romanova@playstation.sony.com>2015-10-14 01:09:02 +0000
commitfb7d1d842ea81555a442590e2b5293618e1eaa67 (patch)
tree879515534d4fda736f6544fc88bb25db7ec27ee6 /test/Driver/ps4-linker-non-win.c
parent08b6d449b72915397f02af12f6b44a65807b92e0 (diff)
downloadclang-fb7d1d842ea81555a442590e2b5293618e1eaa67.tar.gz
I took care of the build problem in the commit 250252.
Resubmitting the patch. This patch adds missing pieces to clang, including the PS4 toolchain definition, added warnings, PS4 defaults, and Driver changes needed for our compiler. A patch by Filipe Cabecinhas, Pierre Gousseau and Katya Romanova! Differential Revision: http://reviews.llvm.org/D13482 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/ps4-linker-non-win.c')
-rw-r--r--test/Driver/ps4-linker-non-win.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Driver/ps4-linker-non-win.c b/test/Driver/ps4-linker-non-win.c
new file mode 100644
index 0000000000..9a89527702
--- /dev/null
+++ b/test/Driver/ps4-linker-non-win.c
@@ -0,0 +1,18 @@
+// UNSUPPORTED: system-windows
+// REQUIRES: x86-registered-target
+
+// RUN: touch %T/ps4-ld
+
+// RUN: env "PATH=%T" %clang -### -target x86_64-scei-ps4 %s -fuse-ld=gold 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
+// RUN: env "PATH=%T" %clang -### -target x86_64-scei-ps4 %s -shared 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
+
+// RUN: env "PATH=%T" %clang -### -target x86_64-scei-ps4 %s 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
+// RUN: env "PATH=%T" %clang -### -target x86_64-scei-ps4 %s -fuse-ld=ps4 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
+// RUN: env "PATH=%T" %clang -### -target x86_64-scei-ps4 %s -shared \
+// RUN: -fuse-ld=ps4 2>&1 | FileCheck --check-prefix=CHECK-PS4-LINKER %s
+
+// CHECK-PS4-LINKER: ps4-ld