]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add missing testcase
authorH.J. Lu <hjl@gcc.gnu.org>
Tue, 25 Sep 2012 13:06:31 +0000 (06:06 -0700)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 25 Sep 2012 13:06:31 +0000 (06:06 -0700)
From-SVN: r191705

gcc/testsuite/gcc.target/i386/20030217-2.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/i386/20030217-2.c b/gcc/testsuite/gcc.target/i386/20030217-2.c
new file mode 100644 (file)
index 0000000..d0606a2
--- /dev/null
@@ -0,0 +1,23 @@
+/* Test whether denormal floating point constants in hexadecimal notation
+   are parsed correctly.  */
+/* { dg-do run } */
+/* { dg-options "-std=c99" } */
+
+long double d;
+long double e;
+
+long double f = 2.2250738585072014E-308L;
+
+extern void abort (void);
+extern void exit (int);
+
+int
+main (void)
+{
+   d = 0x0.0000003ffffffff00000p-1048L;
+   e = 0x0.0000003ffffffff00000p-1047L;
+  if (d != e / 2.0)
+    abort ();
+
+  exit (0);
+}