view tests/minicomplex/volatile1.d @ 899:23d36edea021

Add wilsonk's static data segment finding code for x86-64 from #181. Thanks!
author Christian Kamm <kamm incasoftware de>
date Thu, 22 Jan 2009 18:23:30 +0100
parents 1bb99290e03a
children
line wrap: on
line source

module tangotests.volatile1;

import tango.stdc.stdlib;

void main()
{
    int var = rand();
    {
        int i = var;
        volatile;
        int j = i;
    }
}