aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/no-warning.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.apple/no-warning.c')
-rw-r--r--gcc/testsuite/gcc.apple/no-warning.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/no-warning.c b/gcc/testsuite/gcc.apple/no-warning.c
new file mode 100644
index 00000000000..9b71d722239
--- /dev/null
+++ b/gcc/testsuite/gcc.apple/no-warning.c
@@ -0,0 +1,8 @@
+/* APPLE LOCAL file -Wno-#warnings */
+
+/* { dg-do compile } */
+/* { dg-options "-Wno-#warnings" } */
+
+#warning "suppress this warning"
+
+int a;