mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Add broken .funcptr test.
This commit is contained in:
9
tests/mini/compile_dgfuncptr.d
Normal file
9
tests/mini/compile_dgfuncptr.d
Normal file
@@ -0,0 +1,9 @@
|
||||
void main()
|
||||
{
|
||||
void foo() {}
|
||||
|
||||
auto dg = &foo;
|
||||
|
||||
if(dg.funcptr is null)
|
||||
{}
|
||||
}
|
||||
Reference in New Issue
Block a user