Author: baldrick
Date: Wed Jan 2 18:26:42 2008
New Revision: 45522
URL: http://llvm.org/viewvc/llvm-project?rev=45522&view=rev
Log:
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.
Added:
llvm/trunk/test/FrontendAda/init_size.ads
Added: llvm/trunk/test/FrontendAda/init_size.ads
URL:
http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendAda/init_size.ads?rev=45522&view=auto
==============================================================================
--- llvm/trunk/test/FrontendAda/init_size.ads (added)
+++ llvm/trunk/test/FrontendAda/init_size.ads Wed Jan 2 18:26:42 2008
@@ -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;
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits