mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 02:39:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			323 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			323 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{ %target=darwin }
 | 
						|
{ %cpu=powerpc,powerpc64,i386,x86_64,arm }
 | 
						|
 | 
						|
{ Written by Jonas Maebe in 2010, released into the public domain }
 | 
						|
 | 
						|
{$mode objfpc}
 | 
						|
{$modeswitch objectivec1}
 | 
						|
 | 
						|
uses
 | 
						|
  uobjc35d, uobjc35e;
 | 
						|
 | 
						|
var
 | 
						|
  a: MyExternalClass;
 | 
						|
begin
 | 
						|
  a:=MyExternalClass.alloc.init;
 | 
						|
  if a.myTest<>1234 then
 | 
						|
    halt(1);
 | 
						|
  a.release;
 | 
						|
end.
 |