Mercurial > projects > ldc
view tests/mini/with2.d @ 1091:20d96c148b39
Fix for fmul/div/add/sub with no operands. Revert explicit ST0 definition since a typo
had caused the need for that.
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Tue, 10 Mar 2009 18:34:19 -0600 |
parents | 43165a082535 |
children |
line wrap: on
line source
struct bar { int bar; } void main() { bar Bar; with (Bar) { assert(Bar.bar == 0); void test() { bar ++; } test(); } assert(Bar.bar == 1); }