aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/ieee/pr67218.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/ieee/pr67218.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/ieee/pr67218.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/ieee/pr67218.c b/SingleSource/Regression/C/gcc-c-torture/execute/ieee/pr67218.c
new file mode 100644
index 00000000..2a1260a7
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/ieee/pr67218.c
@@ -0,0 +1,15 @@
+extern void abort (void) __attribute__ ((noreturn));
+
+double __attribute__ ((noinline, noclone))
+foo (unsigned int x)
+{
+ return (double) (float) (x | 0xffff0000);
+}
+
+int
+main ()
+{
+ if (foo (1) != 0x1.fffep31)
+ abort ();
+ return 0;
+}