summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/const-float80-ped.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/const-float80-ped.c')
-rw-r--r--gcc/testsuite/gcc.dg/const-float80-ped.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/const-float80-ped.c b/gcc/testsuite/gcc.dg/const-float80-ped.c
new file mode 100644
index 00000000000..9cf047804a4
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/const-float80-ped.c
@@ -0,0 +1,6 @@
+/* Test 'w' suffix with -pedantic on __float80 type constants. */
+/* { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */
+/* { dg-options "-pedantic" } */
+/* { dg-options "-mmmx -pedantic" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+
+__float80 a = 123.456789w; /* { dg-warning "non-standard suffix on floating constant" } */