aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/const-float128.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/const-float128.c')
-rw-r--r--gcc/testsuite/gcc.dg/const-float128.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/const-float128.c b/gcc/testsuite/gcc.dg/const-float128.c
new file mode 100644
index 0000000..1797e08
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/const-float128.c
@@ -0,0 +1,6 @@
+/* Test 'q' and 'Q' suffixes on __float128 type constants. */
+/* { dg-do compile { target { ia64-*-* || { { i?86-*-* x86_64-*-*} && lp64 } } } } */
+/* { dg-options "" } */
+
+__float128 a = 123.456789q;
+__float128 b = 123.456789Q;