summaryrefslogtreecommitdiff
path: root/clang/test/Driver/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/target.c')
-rw-r--r--clang/test/Driver/target.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Driver/target.c b/clang/test/Driver/target.c
new file mode 100644
index 0000000..59147e0
--- /dev/null
+++ b/clang/test/Driver/target.c
@@ -0,0 +1,11 @@
+// RUN: %clang -no-canonical-prefixes -target unknown-unknown-unknown -c %s \
+// RUN: -o %t.o -### 2>&1 | FileCheck %s
+//
+// Ensure we get a crazy triple here as we asked for one.
+// CHECK: Target: unknown-unknown-unknown
+//
+// Also, ensure we don't blindly hand our target selection logic down to GCC.
+// CHECK: "{{.*gcc(\.[Ee][Xx][Ee])?}}"
+// CHECK-NOT: "-target"
+// CHECK-NOT: "unknown-unknown-unknown"
+// CHECK: "-x" "assembler"