Mercurial > projects > dstress
changeset 1603:2031b04871b3
Fix broken invariant + synchronized test. Synchronized is not a valid function
attribute for structs!
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 28 Mar 2009 19:17:32 +0100 |
parents | 56d43974b468 |
children | cc724d521a34 |
files | run/i/invariant_33_B.d |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/run/i/invariant_33_B.d Fri Mar 06 15:48:16 2009 +0100 +++ b/run/i/invariant_33_B.d Sat Mar 28 19:17:32 2009 +0100 @@ -9,7 +9,7 @@ module dstress.run.i.invariant_33_B; -struct X{ +class X{ synchronized invariant(){ int x; } @@ -19,7 +19,7 @@ } int main(){ - X x; + X x = new X; x.foo(); return 0;