Mercurial > projects > ldc
view test/bug32.d @ 296:0548a7720a1b trunk
[svn r317] Convert result of _adEq runtime function to bool to make sure EqualExp returns i1 bool.
author | ChristianK |
---|---|
date | Mon, 23 Jun 2008 19:08:32 +0200 |
parents | d9d5d59873d8 |
children |
line wrap: on
line source
module bug32; extern(C) int printf(char*, ...); struct S { char[] getName() { return name; } char[] name; } void main() { S s = S("Kyle"); char[] name = s.name; printf("%.*s\n", name.length, name.ptr); }