From 6ded956aee1887e261afeb8b4572583afda0f6d6 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. llvm-svn: 36874 --- llvm/test/FrontendAda/global_constant.adb | 5 +++++ llvm/test/FrontendAda/global_constant.ads | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 llvm/test/FrontendAda/global_constant.adb create mode 100644 llvm/test/FrontendAda/global_constant.ads diff --git a/llvm/test/FrontendAda/global_constant.adb b/llvm/test/FrontendAda/global_constant.adb new file mode 100644 index 000000000000..4b64f101bd94 --- /dev/null +++ b/llvm/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/llvm/test/FrontendAda/global_constant.ads b/llvm/test/FrontendAda/global_constant.ads new file mode 100644 index 000000000000..cef4b11f684a --- /dev/null +++ b/llvm/test/FrontendAda/global_constant.ads @@ -0,0 +1,4 @@ +package Global_Constant is + pragma Elaborate_Body; + An_Error : exception; +end;