mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
[svn r33] * Added support for assignment to function arguments
This commit is contained in:
13
test/bug4.d
Normal file
13
test/bug4.d
Normal file
@@ -0,0 +1,13 @@
|
||||
module bug4;
|
||||
|
||||
int func(int i)
|
||||
{
|
||||
i += 2;
|
||||
i -= 3;
|
||||
return i;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
assert(func(4) == 3);
|
||||
}
|
||||
Reference in New Issue
Block a user