Unit tests and segfaults
    Alex Rønne Petersen 
    alex at lycus.org
       
    Thu Dec  6 02:31:42 PST 2012
    
    
  
On 06-12-2012 10:02, Russel Winder wrote:
> What is the right idiom for testing that a function call does segfault
> when you want it to?
>
There is basically no portable, clean way to do that. Why are you 
relying on segmentation faults? It's generally speaking a very bad idea 
because behavior depends entirely on the platform and architecture...
-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org
    
    
More information about the Digitalmars-d-learn
mailing list