view tests/mini/norun_debug5.d @ 1562:95d710d405e3

Fixed compiling with llvm rev > 77732
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Sat, 01 Aug 2009 18:23:52 +0200
parents 925779c19395
children
line wrap: on
line source

module mini.norun_debug5;

void main()
{
    int i = 32;
    real r = 3.1415;
    real* p = &r;
    func(i,r,p);
}

void func(int i, real r, real* p)
{
    int* fail = cast(int*) 1;
    *fail = 666;
}