summaryrefslogtreecommitdiff
path: root/test/Driver/ps4-linker-non-win.c
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-10-14 12:25:43 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-10-14 12:25:43 +0000
commit5d7c81cfa5b505bd0c7c0810ca2a36a745723498 (patch)
tree24403964dc328442f7a60816fadcf46f8c1f713f /test/Driver/ps4-linker-non-win.c
parentcbaad07100bbaed791b0e9ddbbcd317730094164 (diff)
downloadclang-5d7c81cfa5b505bd0c7c0810ca2a36a745723498.tar.gz
Bring back r250262: PS4 toolchain
There was a minor problem with a test. Sorry for the noise yesterday. 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@250293 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