annotate run/opNeg_01.d @ 144:0e1a3785ec97
1) added missing @url@/@uri@ tags
2) added dchar tests
3) cleanup of opPos, opNeg
4) renamed "classes" -> "class"
author |
thomask |
date |
Wed, 17 Nov 2004 12:48:16 +0000 |
parents |
3414705c41ac |
children |
|
rev |
line source |
144
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.opNeg_01;
|
0
|
6
|
|
7 class MyClass{
|
|
8 int status;
|
|
9
|
|
10 void opNeg(){
|
144
|
11 status++;
|
0
|
12 }
|
|
13 }
|
|
14
|
|
15 int main(){
|
|
16 MyClass c = new MyClass();
|
|
17 assert(c.status==0);
|
|
18 -c;
|
144
|
19 assert(c.status==1);
|
0
|
20 return 0;
|
|
21 }
|