writing DMD tests for inline assembly bugs

Cauterite via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 29 05:44:50 PDT 2015


while working on issue 15235 I've been trying to add some new 
tests for DMD.

The tests I want to write involve checking that certain asm 
statements throw syntax errors instead of segfaults, but the fact 
that asmerr() ends compilation unconditionally is proving to be a 
problem. __traits(compiles, …) doesn't help (as discovered in 
issue 15257).

The only solution I can think of would be to have a separate test 
for each statement. Anyone got a better idea?


More information about the Digitalmars-d mailing list