mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
12
test/FrontendAda/init_size.ads
Normal file
12
test/FrontendAda/init_size.ads
Normal file
@@ -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;
|
Reference in New Issue
Block a user