mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
[svn r44] Lots of bug fixes.
New array literal support New array ~= operator support (for single element) New with statement support More...
This commit is contained in:
21
test/bug8.d
Normal file
21
test/bug8.d
Normal file
@@ -0,0 +1,21 @@
|
||||
module bug8;
|
||||
|
||||
void main()
|
||||
{
|
||||
s = newS();
|
||||
}
|
||||
|
||||
S* s;
|
||||
|
||||
struct S
|
||||
{
|
||||
int i;
|
||||
}
|
||||
|
||||
S* newS()
|
||||
{
|
||||
auto tmp = new S;
|
||||
tmp.i = 4;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user