mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 08:39:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			185 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			185 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{ %OPT=-gl }
 | 
						|
program Project1;
 | 
						|
 | 
						|
{$mode objfpc}{$H+}{$static on}
 | 
						|
 | 
						|
type
 | 
						|
  MyClass = class(TObject)
 | 
						|
  private
 | 
						|
    FClassVar: integer; static;
 | 
						|
  end;
 | 
						|
 | 
						|
begin
 | 
						|
  myclass.fclassvar := 1;
 | 
						|
end.
 | 
						|
 |