aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/mips-features.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/mips-features.c')
-rw-r--r--test/Driver/mips-features.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Driver/mips-features.c b/test/Driver/mips-features.c
new file mode 100644
index 0000000000..038b718098
--- /dev/null
+++ b/test/Driver/mips-features.c
@@ -0,0 +1,13 @@
+// Check handling MIPS specific features options.
+//
+// -mips16
+// RUN: %clang -target mips-linux-gnu -### -c %s \
+// RUN: -mno-mips16 -mips16 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-MIPS16 %s
+// CHECK-MIPS16: "-target-feature" "+mips16"
+//
+// -mno-mips16
+// RUN: %clang -target mips-linux-gnu -### -c %s \
+// RUN: -mips16 -mno-mips16 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-NOMIPS16 %s
+// CHECK-NOMIPS16: "-target-feature" "-mips16"