summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Driver/print-effective-triple.c6
-rw-r--r--clang/test/Driver/print-target-triple.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/print-effective-triple.c b/clang/test/Driver/print-effective-triple.c
new file mode 100644
index 00000000000..65b38748d6a
--- /dev/null
+++ b/clang/test/Driver/print-effective-triple.c
@@ -0,0 +1,6 @@
+// Test that -print-target-triple prints correct triple.
+
+// RUN: %clang -print-effective-triple 2>&1 \
+// RUN: --target=thumb-linux-gnu \
+// RUN: | FileCheck %s
+// CHECK: armv4t-unknown-linux-gnu
diff --git a/clang/test/Driver/print-target-triple.c b/clang/test/Driver/print-target-triple.c
new file mode 100644
index 00000000000..70b2493a6fa
--- /dev/null
+++ b/clang/test/Driver/print-target-triple.c
@@ -0,0 +1,6 @@
+// Test that -print-target-triple prints correct triple.
+
+// RUN: %clang -print-target-triple 2>&1 \
+// RUN: --target=x86_64-linux-gnu \
+// RUN: | FileCheck %s
+// CHECK: x86_64-unknown-linux-gnu
OpenPOWER on IntegriCloud