aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/dfp/pr52140.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/dfp/pr52140.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/dfp/pr52140.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/dfp/pr52140.c b/gcc-4.9/gcc/testsuite/gcc.dg/dfp/pr52140.c
new file mode 100644
index 000000000..ca878f2d8
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/dfp/pr52140.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+
+/* This used to result in an ICE. */
+
+int
+foo (_Decimal64 x, _Decimal64 y)
+{
+ return (x < y) || (x > y);
+}