summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/decimal/return-3_x.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/compat/decimal/return-3_x.C')
-rw-r--r--gcc/testsuite/g++.dg/compat/decimal/return-3_x.C24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/compat/decimal/return-3_x.C b/gcc/testsuite/g++.dg/compat/decimal/return-3_x.C
new file mode 100644
index 000000000..52e599c76
--- /dev/null
+++ b/gcc/testsuite/g++.dg/compat/decimal/return-3_x.C
@@ -0,0 +1,24 @@
+typedef float dec32 __attribute__((mode(SD)));
+typedef float dec64 __attribute__((mode(DD)));
+typedef float dec128 __attribute__((mode(TD)));
+
+#include "return_x.h"
+
+void
+return_3_x (void)
+{
+DEBUG_INIT
+
+#define T(NAME) testit##NAME ();
+
+T(d32)
+T(d64)
+T(d128)
+
+DEBUG_FINI
+
+if (fails != 0)
+ abort ();
+
+#undef T
+}