aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Driver/prefixed-tools.c14
-rwxr-xr-xtest/Driver/prefixed-tools.c-helper/x86_64--linux-as2
-rwxr-xr-xtest/Driver/prefixed-tools.c-helper/x86_64--linux-ld2
3 files changed, 18 insertions, 0 deletions
diff --git a/test/Driver/prefixed-tools.c b/test/Driver/prefixed-tools.c
new file mode 100644
index 0000000000..1fc3d8f6a6
--- /dev/null
+++ b/test/Driver/prefixed-tools.c
@@ -0,0 +1,14 @@
+// RUN: env PATH=%s-helper %clang -no-integrated-as -target x86_64--linux %s -o - > %t.log
+// RUN: env PATH=%s-helper %clang -no-integrated-as -m32 -target x86_64--linux %s -o - >> %t.log
+// RUN: FileCheck -input-file %t.log %s
+
+// CHECK: x86_64--linux-as called
+// CHECK: x86_64--linux-ld called
+// CHECK: x86_64--linux-as called
+// CHECK: x86_64--linux-ld called
+
+int
+main(void)
+{
+ return 0;
+} \ No newline at end of file
diff --git a/test/Driver/prefixed-tools.c-helper/x86_64--linux-as b/test/Driver/prefixed-tools.c-helper/x86_64--linux-as
new file mode 100755
index 0000000000..141e1fab16
--- /dev/null
+++ b/test/Driver/prefixed-tools.c-helper/x86_64--linux-as
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "x86_64--linux-as called"
diff --git a/test/Driver/prefixed-tools.c-helper/x86_64--linux-ld b/test/Driver/prefixed-tools.c-helper/x86_64--linux-ld
new file mode 100755
index 0000000000..129ba0a4a9
--- /dev/null
+++ b/test/Driver/prefixed-tools.c-helper/x86_64--linux-ld
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "x86_64--linux-ld called"