Files
ldc/test/bug8.d
Tomas Lindquist Olsen 10db08076c [svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
2007-10-19 07:43:21 +02:00

22 lines
147 B
D

module bug8;
void main()
{
s = newS();
}
S* s;
struct S
{
int i;
}
S* newS()
{
auto tmp = new S;
tmp.i = 4;
return tmp;
}