summaryrefslogtreecommitdiff
path: root/test/LibDriver
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:17:04 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:17:04 +0000
commitb915e9e0fc85ba6f398b3fab0db6a81a8913af94 (patch)
tree98b8f811c7aff2547cab8642daf372d6c59502fb /test/LibDriver
parent6421cca32f69ac849537a3cff78c352195e99f1b (diff)
Notes
Diffstat (limited to 'test/LibDriver')
-rwxr-xr-xtest/LibDriver/Inputs/cl-gl.objbin0 -> 3734 bytes
-rw-r--r--test/LibDriver/Inputs/resource.resbin0 -> 108 bytes
-rw-r--r--test/LibDriver/invalid.test2
-rw-r--r--test/LibDriver/resource.test3
-rw-r--r--test/LibDriver/thin.test2
5 files changed, 6 insertions, 1 deletions
diff --git a/test/LibDriver/Inputs/cl-gl.obj b/test/LibDriver/Inputs/cl-gl.obj
new file mode 100755
index 0000000000000..ff746557d4124
--- /dev/null
+++ b/test/LibDriver/Inputs/cl-gl.obj
Binary files differ
diff --git a/test/LibDriver/Inputs/resource.res b/test/LibDriver/Inputs/resource.res
new file mode 100644
index 0000000000000..f1c799fbbb08f
--- /dev/null
+++ b/test/LibDriver/Inputs/resource.res
Binary files differ
diff --git a/test/LibDriver/invalid.test b/test/LibDriver/invalid.test
new file mode 100644
index 0000000000000..2978177a431e2
--- /dev/null
+++ b/test/LibDriver/invalid.test
@@ -0,0 +1,2 @@
+RUN: not llvm-lib %S/Inputs/cl-gl.obj 2>&1 | FileCheck %s
+CHECK: not a COFF object, bitcode or resource file
diff --git a/test/LibDriver/resource.test b/test/LibDriver/resource.test
new file mode 100644
index 0000000000000..6c3dad50b450d
--- /dev/null
+++ b/test/LibDriver/resource.test
@@ -0,0 +1,3 @@
+RUN: llvm-lib /out:%t %S/Inputs/resource.res
+RUN: llvm-ar t %t | FileCheck %s
+CHECK: resource.res
diff --git a/test/LibDriver/thin.test b/test/LibDriver/thin.test
index 4ab9d61952bfc..c401de41a8008 100644
--- a/test/LibDriver/thin.test
+++ b/test/LibDriver/thin.test
@@ -1,4 +1,4 @@
-RUN: echo foo > %t
+RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t %S/Inputs/a.s
RUN: llvm-lib -out:%t.a %t
RUN: FileCheck --check-prefix=FAT %s < %t.a