view tests/mini/norun_debug8.d @ 1542:ba2a5d2fe748

raw_fd_ostream takes a force parameter now Build fix for LLVM 75801.
author Benjamin Kramer <benny.kra@gmail.com>
date Wed, 15 Jul 2009 20:04:42 +0200
parents 925779c19395
children
line wrap: on
line source

module mini.norun_debug8;

struct Str
{
    size_t len;
    void* ptr;
}

struct Foo
{
    long l;
    Bar bar;
}

struct Bar
{
    float x,y,z;
    Foo* foo;
}

void main()
{
    Str str;
    Foo foo;
    foo.l = 42;
    foo.bar.y = 3.1415;
    foo.bar.foo = &foo;

    int* fail = cast(int*) 1;
    *fail = 0;
}