(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
fail325.d
/*
TEST_OUTPUT:
---
fail_compilation/fail325.d(12): Error: template `fun(T = int)(int w, int z)` has no type
---
*/

void fun(T = int)(int w, int z) {}

void main()
{
    auto x = cast(void function(int, int))fun;
}