mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-12 01:43:14 +01:00
Support structs that are merely a forward reference. See mini/forwdecl1.d
This commit is contained in:
12
tests/mini/forwdecl1.d
Normal file
12
tests/mini/forwdecl1.d
Normal file
@@ -0,0 +1,12 @@
|
||||
struct Foo;
|
||||
|
||||
Foo* foo()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
Foo* f = foo();
|
||||
assert(f is null);
|
||||
}
|
||||
Reference in New Issue
Block a user