annotate tests/mini/bug32.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
children
rev   line source
lindquist@54 1 module bug32;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@54 3
lindquist@54 4 struct S
lindquist@54 5 {
lindquist@54 6 char[] getName() { return name; }
lindquist@54 7 char[] name;
lindquist@54 8 }
lindquist@54 9
lindquist@54 10 void main()
lindquist@54 11 {
lindquist@54 12 S s = S("Kyle");
lindquist@54 13 char[] name = s.name;
lindquist@54 14 printf("%.*s\n", name.length, name.ptr);
lindquist@54 15 }