mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 07:43:04 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			188 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			188 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{ %opt=-O2 }
 | 
						|
{$mode delphi}
 | 
						|
 | 
						|
type
 | 
						|
  tc1 = class
 | 
						|
  end;
 | 
						|
 | 
						|
  tc2 = class
 | 
						|
  end;
 | 
						|
 | 
						|
var
 | 
						|
  c: tobject;
 | 
						|
begin
 | 
						|
  c:=tc2.create;
 | 
						|
  if (c is tc1) or
 | 
						|
     (c is tc2) then
 | 
						|
    halt(0);
 | 
						|
  halt(1);
 | 
						|
end.
 |