mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 06:59:33 +01:00 
			
		
		
		
	whose size is not a power of two + some more packed array/record tests git-svn-id: trunk@7610 -
		
			
				
	
	
		
			17 lines
		
	
	
		
			171 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			171 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{ %fail }
 | 
						|
 | 
						|
type
 | 
						|
  trange = 0..$ffffff;
 | 
						|
  tarr = bitpacked array[0..20] of trange;
 | 
						|
 | 
						|
procedure p(var a: trange);
 | 
						|
begin
 | 
						|
end;
 | 
						|
 | 
						|
var
 | 
						|
  a: tarr;
 | 
						|
begin
 | 
						|
  a[0]:=5;
 | 
						|
  p(a[0]);
 | 
						|
end.
 |