forked from OSchip/llvm-project
Testcase causing the Ada front-end to create bogus constructor fields.
llvm-svn: 34926
This commit is contained in:
parent
14b7061a60
commit
49f6938169
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue