mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 07:59:34 +01:00 
			
		
		
		
	* their offset is a multiple of 8 bits; and * their size is a multiple of 8 bits; and * if it's a range type, the size is also a power of 2 git-svn-id: trunk@7609 -
		
			
				
	
	
		
			22 lines
		
	
	
		
			220 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			220 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{ %fail }
 | 
						|
 | 
						|
type
 | 
						|
  tr = bitpacked record
 | 
						|
    a,b,c: byte;
 | 
						|
    d,e:0..15;
 | 
						|
    f: byte;
 | 
						|
    g: 0..$ffffff; { 3 bytes }
 | 
						|
    h: byte;
 | 
						|
  end;
 | 
						|
 | 
						|
procedure p(var b: byte);
 | 
						|
begin
 | 
						|
  b := $12
 | 
						|
end;
 | 
						|
 | 
						|
var
 | 
						|
  r: tr;
 | 
						|
begin
 | 
						|
  p(r.e);
 | 
						|
end.
 |