annotate nocompile/invariant_09.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents ec5e144583ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
374
f87ba6507260 added missing meta-data
thomask
parents: 59
diff changeset
1 // $HeadURL$
f87ba6507260 added missing meta-data
thomask
parents: 59
diff changeset
2 // $Date$
f87ba6507260 added missing meta-data
thomask
parents: 59
diff changeset
3 // $Author$
f87ba6507260 added missing meta-data
thomask
parents: 59
diff changeset
4
f87ba6507260 added missing meta-data
thomask
parents: 59
diff changeset
5 // invariant is only allowed in class/union/struct (dmd-0.119 documentation)
f87ba6507260 added missing meta-data
thomask
parents: 59
diff changeset
6
f87ba6507260 added missing meta-data
thomask
parents: 59
diff changeset
7 // __DSTRESS_ELINE__ 13
59
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
8
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
9 module dstress.nocompile.invariant_09;
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
10
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
11 class MyClass{
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
12 int test(){
1559
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 374
diff changeset
13 invariant(){
59
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
14 assert(0);
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
15 }
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
16 return 0;
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
17 }
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
18 }
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
19
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
20 int main(){
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
21 Myclass c = new MyClass();
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
22 return c.test();
96cadd0da1ae added invariant tests
thomask
parents:
diff changeset
23 }