Mercurial > projects > dstress
view nocompile/invariant_07.d @ 59:96cadd0da1ae
added invariant tests
author | thomask |
---|---|
date | Fri, 22 Oct 2004 20:29:58 +0000 |
parents | |
children | f87ba6507260 |
line wrap: on
line source
// invariant is only allowed in classes (dmd-0.104 documentation) module dstress.nocompile.invariant_07; int test() body{ return 0; } invariant{ assert(0); } int main(){ return test(); }