Testcase causing the Ada front-end to create bogus constructor fields.

llvm-svn: 34926
This commit is contained in:
Duncan Sands 2007-03-05 08:34:35 +00:00
parent 14b7061a60
commit 49f6938169
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,10 @@
-- RUN: %llvmgcc -c %s -o /dev/null
-- RUN: %llvmgcc -c %s -O2 -o /dev/null
package body Fat_Fields is
procedure Proc is
begin
if P = null then
null;
end if;
end;
end;

View File

@ -0,0 +1,6 @@
package Fat_Fields is
pragma Elaborate_Body;
type A is array (Positive range <>) of Boolean;
type A_Ptr is access A;
P : A_Ptr := null;
end;