aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/Wlong-double.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.apple/Wlong-double.c')
-rw-r--r--gcc/testsuite/gcc.apple/Wlong-double.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/Wlong-double.c b/gcc/testsuite/gcc.apple/Wlong-double.c
new file mode 100644
index 00000000000..2a42912b660
--- /dev/null
+++ b/gcc/testsuite/gcc.apple/Wlong-double.c
@@ -0,0 +1,11 @@
+/* APPLE LOCAL file -Wlong-double */
+
+/* We warn by default, so no specific option needed. */
+
+/* { dg-do compile { target "*-*-darwin*" } } */
+/* { dg-options "" } */
+
+long double ld; /* { dg-warning "use of `long double' type" } */
+/* { dg-warning "is reported only once" "" { target *-*-* } 8 } */
+/* { dg-warning "disable this warning" "" { target *-*-* } 8 } */
+