annotate nocompile/with_05.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents 1f6cf5ccfbc9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
1 // $HeadURL$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
2 // $Date$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
3 // $Author$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
4
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
5 // has to be a class instance or struct reference
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
6
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
7 // __DSTRESS_ELINE__ 14
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
8
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
9 module dstress.nocompile.with_05;
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
10
16
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
11 class MyClass{
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
12 void test(){
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
13 byte b;
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
14 with(b){
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
15 assert(0);
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
16 }
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
17 }
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
18 }
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
19
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
20 int main(){
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
21 MyClass c = new MyClass();
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
22 c.test();
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
23 return 0;
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
24 }