[llvm-commits] [llvm] r45522 - /llvm/trunk/test/FrontendAda/init_size.ads
Duncan Sands
baldrick at free.fr
Wed Jan 2 16:26:42 PST 2008
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;
More information about the llvm-commits
mailing list