mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Testcase for dragonegg commit 124128.
llvm-svn: 124129
This commit is contained in:
parent
ead58a5259
commit
64d4cb968a
4
test/FrontendAda/Support/real_cst.ads
Normal file
4
test/FrontendAda/Support/real_cst.ads
Normal file
@ -0,0 +1,4 @@
|
||||
with Ada.Streams;
|
||||
package Real_Cst is
|
||||
procedure Write (Stream : access Ada.Streams.Root_Stream_Type'Class);
|
||||
end;
|
8
test/FrontendAda/real_cst.adb
Normal file
8
test/FrontendAda/real_cst.adb
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user