Mercurial > projects > ldc
view test/strings1.d @ 226:4145266ff4bd trunk
[svn r242] fixed (I think) arg_pointer inline asm args
author | lindquist |
---|---|
date | Sat, 07 Jun 2008 19:04:26 +0200 |
parents | 8d45266bbabe |
children | d9d5d59873d8 |
line wrap: on
line source
module strings1; void f(char[11] buffer) { printf("%.*s\n", buffer.length, buffer.ptr); } void main() { char[11] buffer; char[] hello = "hello world"; {buffer[] = hello[];} {f(buffer);} {f("eleven char");} }