mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 08:19:36 +01:00 
			
		
		
		
	
							parent
							
								
									123362235b
								
							
						
					
					
						commit
						abd3ce841a
					
				
							
								
								
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							@ -8343,6 +8343,7 @@ tests/webtbs/tw8975a.pp svneol=native#text/plain
 | 
			
		||||
tests/webtbs/tw8977.pp svneol=native#text/plain
 | 
			
		||||
tests/webtbs/tw9054.pp svneol=native#text/plain
 | 
			
		||||
tests/webtbs/tw9059.pp svneol=native#text/plain
 | 
			
		||||
tests/webtbs/tw9073.pp svneol=native#text/plain
 | 
			
		||||
tests/webtbs/tw9076.pp svneol=native#text/plain
 | 
			
		||||
tests/webtbs/tw9076a.pp svneol=native#text/plain
 | 
			
		||||
tests/webtbs/tw9085.pp svneol=native#text/plain
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										40
									
								
								tests/webtbs/tw9073.pp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								tests/webtbs/tw9073.pp
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,40 @@
 | 
			
		||||
{$mode objfpc}
 | 
			
		||||
 | 
			
		||||
uses
 | 
			
		||||
{$ifdef unix}
 | 
			
		||||
  cthreads,
 | 
			
		||||
{$endif}
 | 
			
		||||
  SysUtils, Classes;
 | 
			
		||||
 | 
			
		||||
type
 | 
			
		||||
  tc = class(tthread)
 | 
			
		||||
    procedure execute; override;
 | 
			
		||||
  end;
 | 
			
		||||
 | 
			
		||||
var
 | 
			
		||||
  caught: boolean;
 | 
			
		||||
 | 
			
		||||
procedure tc.execute;
 | 
			
		||||
type
 | 
			
		||||
  plongint = ^longint;
 | 
			
		||||
var
 | 
			
		||||
  p: plongint;
 | 
			
		||||
begin
 | 
			
		||||
  p:=nil;
 | 
			
		||||
  try
 | 
			
		||||
    writeln(p^);
 | 
			
		||||
  except
 | 
			
		||||
    caught:=true;
 | 
			
		||||
  end;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
var
 | 
			
		||||
  c: tc;
 | 
			
		||||
begin
 | 
			
		||||
  caught:=false;
 | 
			
		||||
  c:=tc.create(false);
 | 
			
		||||
  c.waitfor;
 | 
			
		||||
  c.free;
 | 
			
		||||
  halt(ord(not caught));
 | 
			
		||||
end.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user