diff options
Diffstat (limited to 'test/FrontendAda/real_cst.adb')
-rw-r--r-- | test/FrontendAda/real_cst.adb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendAda/real_cst.adb b/test/FrontendAda/real_cst.adb new file mode 100644 index 0000000000000..c9708301d62f7 --- /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; |