Mercurial > projects > ldc
view test/bug50.d @ 278:30941d8ee320 trunk
[svn r299] forgot to return status in runExecutable
author | lindquist |
---|---|
date | Fri, 20 Jun 2008 22:12:15 +0200 |
parents | d9d5d59873d8 |
children |
line wrap: on
line source
module bug50; extern(C) int printf(char*, ...); pragma(LLVM_internal, "notypeinfo") struct S { int i; float f; long l; void print() { printf("%d %f %lx\n", i, f, l); } } void main() { S s; s.print(); s = S(1,2,3); s.print(); S[] arr; {arr ~= s;} {arr[0].print();} {arr ~= S(1,2,3);} {arr[1].print();} }