mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-24 12:49:12 +02:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
5
tests/mini/bug1.d
Normal file
5
tests/mini/bug1.d
Normal file
@@ -0,0 +1,5 @@
|
||||
module bug1;
|
||||
struct Foo { Foo opSub(ref Foo b) { return Foo(); } }
|
||||
struct Bar { Foo whee; }
|
||||
void test(ref Bar moo) { Foo nngh; auto plonk = nngh - moo.whee; }
|
||||
void main() { Bar bar; test(bar); }
|
||||
Reference in New Issue
Block a user