annotate run/i/invariant_33_B.d @ 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 ec5e144583ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1512
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
1 // $HeadURL$
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
2 // $Date$
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
3 // $Author$
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
4
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
5 // @author@ <torhu@yahoo.com>
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
6 // @date@ 2007-04-12
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1135
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
8 // @desc@ [Issue 1135] invariant keyword parsing is messed up
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
9
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
10 module dstress.run.i.invariant_33_B;
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
11
1603
2031b04871b3 Fix broken invariant + synchronized test. Synchronized is not a valid function
Christian Kamm <kamm incasoftware de>
parents: 1559
diff changeset
12 class X{
1559
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1512
diff changeset
13 synchronized invariant(){
1512
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
14 int x;
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
15 }
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
16
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
17 void foo(){
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
18 }
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
19 }
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
20
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
21 int main(){
1603
2031b04871b3 Fix broken invariant + synchronized test. Synchronized is not a valid function
Christian Kamm <kamm incasoftware de>
parents: 1559
diff changeset
22 X x = new X;
1512
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
23
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
24 x.foo();
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
25 return 0;
b171e38c078b [Issue 1135] invariant keyword parsing is messed up
thomask
parents:
diff changeset
26 }