[PATCH] D49482: Haiku: add a test for haiku driver
Alexander von Gluck IV via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 18 06:57:33 PDT 2018
kallisti5 created this revision.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D49482
Files:
test/Driver/haiku.c
Index: test/Driver/haiku.c
===================================================================
--- /dev/null
+++ test/Driver/haiku.c
@@ -0,0 +1,11 @@
+// RUN: %clang -no-canonical-prefixes -target x86_64-unknown-haiku %s -### 2> %t.log
+// RUN: FileCheck --check-prefix=CHECK-X86_64 -input-file %t.log %s
+
+// CHECK-X86_64: clang{{.*}}" "-cc1" "-triple" "x86_64-unknown-haiku"
+// CHECK-X86_64: gcc{{.*}}" "-o" "a.out" "{{.*}}.o"
+
+// RUN: %clang -no-canonical-prefixes -target i586-pc-haiku %s -### 2> %t.log
+// RUN: FileCheck --check-prefix=CHECK-X86 -input-file %t.log %s
+
+// CHECK-X86: clang{{.*}}" "-cc1" "-triple" "i586-pc-haiku"
+// CHECK-X86: gcc{{.*}}" "-o" "a.out" "{{.*}}.o"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49482.156062.patch
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180718/b3d846ce/attachment.bin>
More information about the cfe-commits
mailing list