summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice11944.d
blob: c72d9f0de5ce43afd9b395bf6825cab2a9ddf1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
TEST_OUTPUT:
---
fail_compilation/ice11944.d(12): Error: template instance doCommand!(func) does not match template declaration doCommand(f, T)(f, T arg)
---
*/

void func(int var) {}

void doCommand(f, T)(f, T arg) {}

auto var = &doCommand!func;