annotate nocompile/c/class_17.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 b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
599
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
1 // $HeadURL$
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
2 // $Date$
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
3 // $Author$
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
4
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
5 // @desc@ class inheritance recoursion
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
6 // @author@ Andrew Fedoniouk <news@terrainformatica.com>
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
7 // @date@ 2005-06-09
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 599
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4249
599
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
9
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
10 // __DSTRESS_ELINE__ 21
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
11
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
12 module dstress.nocompile.c.class_17;
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
13
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
14 class A{
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
15 const class B:A{
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
16 const int C = 5;
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
17 }
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
18 }
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
19
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
20 int main(){
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
21 assert(A.B.B.C==5);
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
22 return 0;
4e81f0907fb9 Walter <newshound@digitalmars.com>
thomask
parents:
diff changeset
23 }