summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/misaligned_param_pkg.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/misaligned_param_pkg.adb')
-rw-r--r--gcc/testsuite/gnat.dg/misaligned_param_pkg.adb14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/misaligned_param_pkg.adb b/gcc/testsuite/gnat.dg/misaligned_param_pkg.adb
new file mode 100644
index 000000000..888ed18c3
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/misaligned_param_pkg.adb
@@ -0,0 +1,14 @@
+package body Misaligned_Param_Pkg is
+
+ type IP is access all Integer;
+
+ function Channel_Eth (Kind : IP) return Integer;
+ pragma Export (Ada, Channel_Eth, "channel_eth");
+
+ function Channel_Eth (Kind : IP) return Integer is
+ begin
+ Kind.all := 111;
+ return 0;
+ end;
+
+end Misaligned_Param_Pkg;