aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-01-24 18:04:33 +0000
committerDuncan Sands <baldrick@free.fr>2011-01-24 18:04:33 +0000
commit1f59e09c9ac391fb8305f2cd52492e2ac70bd782 (patch)
tree2b662c0ae91c023bffaa7e94fd4956f4402b2055
parent184640e96e391ecfc4621156907b29f132c14959 (diff)
Testcase for dragonegg commit 124128.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124129 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/FrontendAda/Support/real_cst.ads4
-rw-r--r--test/FrontendAda/real_cst.adb8
2 files changed, 12 insertions, 0 deletions
diff --git a/test/FrontendAda/Support/real_cst.ads b/test/FrontendAda/Support/real_cst.ads
new file mode 100644
index 0000000000..54a34bc405
--- /dev/null
+++ b/test/FrontendAda/Support/real_cst.ads
@@ -0,0 +1,4 @@
+with Ada.Streams;
+package Real_Cst is
+ procedure Write (Stream : access Ada.Streams.Root_Stream_Type'Class);
+end;
diff --git a/test/FrontendAda/real_cst.adb b/test/FrontendAda/real_cst.adb
new file mode 100644
index 0000000000..c9708301d6
--- /dev/null
+++ b/test/FrontendAda/real_cst.adb
@@ -0,0 +1,8 @@
+-- RUN: %llvmgcc -S -O2 -gnatn %s
+package body Real_Cst is
+ Cst : constant Float := 0.0;
+ procedure Write (Stream : access Ada.Streams.Root_Stream_Type'Class) is
+ begin
+ Float'Write (Stream, Cst);
+ end;
+end;