aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/lto16.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/lto16.adb')
-rw-r--r--gcc/testsuite/gnat.dg/lto16.adb17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/lto16.adb b/gcc/testsuite/gnat.dg/lto16.adb
new file mode 100644
index 0000000..82d02b4
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/lto16.adb
@@ -0,0 +1,17 @@
+-- { dg-do link }
+-- { dg-options "-O -flto" }
+-- { dg-require-effective-target lto }
+
+with Lto16_Pkg; use Lto16_Pkg;
+with Text_IO; use Text_IO;
+
+procedure Lto16 is
+begin
+ if F = 0.0 then
+ Put_Line ("zero");
+ else
+ Put_Line ("non-zero");
+ end if;
+exception
+ when others => Put_Line ("exception");
+end;