aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/opt35_pkg.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/opt35_pkg.adb')
-rw-r--r--gcc/testsuite/gnat.dg/opt35_pkg.adb11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/opt35_pkg.adb b/gcc/testsuite/gnat.dg/opt35_pkg.adb
new file mode 100644
index 00000000000..8e868c49d97
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/opt35_pkg.adb
@@ -0,0 +1,11 @@
+package body Opt35_Pkg is
+
+ function F (I : Integer) return Integer is
+ begin
+ if I = 0 then
+ raise E;
+ end if;
+ return -I;
+ end;
+
+end Opt35_Pkg;