aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/FrontendAda/global_constant.adb5
-rw-r--r--test/FrontendAda/global_constant.ads4
2 files changed, 9 insertions, 0 deletions
diff --git a/test/FrontendAda/global_constant.adb b/test/FrontendAda/global_constant.adb
new file mode 100644
index 0000000000..4b64f101bd
--- /dev/null
+++ b/test/FrontendAda/global_constant.adb
@@ -0,0 +1,5 @@
+-- RUN: %llvmgcc -c %s -o /dev/null
+package body Global_Constant is
+begin
+ raise An_Error;
+end;
diff --git a/test/FrontendAda/global_constant.ads b/test/FrontendAda/global_constant.ads
new file mode 100644
index 0000000000..cef4b11f68
--- /dev/null
+++ b/test/FrontendAda/global_constant.ads
@@ -0,0 +1,4 @@
+package Global_Constant is
+ pragma Elaborate_Body;
+ An_Error : exception;
+end;