forked from OSchip/llvm-project
An example for which the TYPE_SIZE was being set from
the initial value, while the type fields were not (this is a qualified union type, so not all fields are always present). This resulted in the size of the corresponding LLVM type being larger than the gcc TYPE_SIZE. llvm-svn: 45522
This commit is contained in:
parent
1d03fb4e7e
commit
a7f7ac7072
|
@ -0,0 +1,12 @@
|
|||
-- RUN: %llvmgcc -c %s
|
||||
package Init_Size is
|
||||
type T (B : Boolean := False) is record
|
||||
case B is
|
||||
when False =>
|
||||
I : Integer;
|
||||
when True =>
|
||||
J : Long_Long_Integer; -- Bigger than I
|
||||
end case;
|
||||
end record;
|
||||
A_T : constant T := (False, 0);
|
||||
end;
|
Loading…
Reference in New Issue