Testcase for yet another global constant Ada f-e bug.
authorDuncan Sands <baldrick@free.fr>
Sun, 6 May 2007 16:20:30 +0000 (16:20 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 6 May 2007 16:20:30 +0000 (16:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36874 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendAda/global_constant.adb [new file with mode: 0644]
test/FrontendAda/global_constant.ads [new file with mode: 0644]

diff --git a/test/FrontendAda/global_constant.adb b/test/FrontendAda/global_constant.adb
new file mode 100644 (file)
index 0000000..4b64f10
--- /dev/null
@@ -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 (file)
index 0000000..cef4b11
--- /dev/null
@@ -0,0 +1,4 @@
+package Global_Constant is
+   pragma Elaborate_Body;
+   An_Error : exception;
+end;