aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/lto16_pkg.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/lto16_pkg.adb')
-rw-r--r--gcc/testsuite/gnat.dg/lto16_pkg.adb18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/lto16_pkg.adb b/gcc/testsuite/gnat.dg/lto16_pkg.adb
new file mode 100644
index 0000000..edfa399
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/lto16_pkg.adb
@@ -0,0 +1,18 @@
+with Ada.Calendar; use Ada.Calendar;
+
+package body Lto16_Pkg is
+
+ function F return Float is
+ F1 : Float := Float (Seconds (Clock));
+ F2 : Float := Float (Seconds (Clock));
+ F : Float;
+ begin
+ if F1 > F2 then
+ F := (F2 - F1) / 2.0;
+ else
+ F := (F1 - F2) / 2.0;
+ end if;
+ return F;
+ end;
+
+end Lto16_Pkg;