From 56a837be5e09ca8f1e4db0f8c93da67f7f35c227 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 6 May 2007 16:20:30 +0000 Subject: [PATCH] Testcase for yet another global constant Ada f-e bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36874 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendAda/global_constant.adb | 5 +++++ test/FrontendAda/global_constant.ads | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 test/FrontendAda/global_constant.adb create mode 100644 test/FrontendAda/global_constant.ads diff --git a/test/FrontendAda/global_constant.adb b/test/FrontendAda/global_constant.adb new file mode 100644 index 00000000000..4b64f101bd9 --- /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 00000000000..cef4b11f684 --- /dev/null +++ b/test/FrontendAda/global_constant.ads @@ -0,0 +1,4 @@ +package Global_Constant is + pragma Elaborate_Body; + An_Error : exception; +end;