Support structs that are merely a forward reference. See mini/forwdecl1.d

This commit is contained in:
Tomas Lindquist Olsen
2008-10-06 14:06:55 +02:00
parent f706098c56
commit ecd8a2ac07
3 changed files with 24 additions and 6 deletions

12
tests/mini/forwdecl1.d Normal file
View File

@@ -0,0 +1,12 @@
struct Foo;
Foo* foo()
{
return null;
}
void main()
{
Foo* f = foo();
assert(f is null);
}