Test that TREE_CONSTANT is being set correctly.

llvm-svn: 36645
This commit is contained in:
Duncan Sands 2007-05-02 07:43:14 +00:00
parent 2f2e949039
commit c0464dd9ee
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,9 @@
-- RUN: %llvmgcc -c %s -o /dev/null
package body Unc_Constructor is
procedure P (X : A) is
begin
if X = A0 then
null;
end if;
end;
end;

View File

@ -0,0 +1,8 @@
package Unc_Constructor is
type C is null record;
type A is array (Positive range <>) of C;
A0 : constant A;
procedure P (X : A);
private
A0 : aliased constant A := (1 .. 0 => (null record));
end;