summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/march.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/march.c')
-rw-r--r--gcc/testsuite/gcc.dg/march.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/march.c b/gcc/testsuite/gcc.dg/march.c
new file mode 100644
index 000000000..605068dbc
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/march.c
@@ -0,0 +1,6 @@
+/* { dg-do compile } */
+/* { dg-skip-if "" { *-*-* } { "-march=*" } { "" } } */
+/* { dg-options "-march=foo" } */
+/* { dg-error "march" "" { target *-*-* } 0 } */
+/* { dg-bogus "mtune" "" { target *-*-* } 0 } */
+int i;