aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pch/inline-3.hs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pch/inline-3.hs')
-rw-r--r--gcc/testsuite/gcc.dg/pch/inline-3.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pch/inline-3.hs b/gcc/testsuite/gcc.dg/pch/inline-3.hs
new file mode 100644
index 00000000000..ef2819ace7f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pch/inline-3.hs
@@ -0,0 +1,7 @@
+extern double rint(double);
+extern double fmod (double, double);
+static inline unsigned foo(double d) {
+ double a;
+ a = rint(d);
+ return (unsigned)(fmod(a, (double)0xFFFFFFFF) + ((d - a) * 0xFFFFFFFF));
+}