view tests/mini/compile_structs1.d @ 1337:b6e819244062

In config file: replace %%ldcbinarypath%% with the path to the ldc executable.
author Christian Kamm <kamm incasoftware de>
date Sun, 10 May 2009 17:58:09 +0200
parents 5a2983f97498
children
line wrap: on
line source

struct Foo { int a, b, c; union Data { } Data data; }
struct Bar { int a, b; }
struct Baz { int a; union { Foo foo; Bar bar; } }
void test() { Baz baz; if (baz.bar.a) return; }