mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
302 B
D
16 lines
302 B
D
// https://issues.dlang.org/show_bug.cgi?id=19608
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test19608.d(15): Error: cannot pass function `*& f` as a function argument
|
|
---
|
|
*/
|
|
import core.stdc.stdarg;
|
|
|
|
void f(int) {}
|
|
void g(...) {}
|
|
void h()
|
|
{
|
|
g(&f); // OK, function address
|
|
g(*&f); // ICE -> Error
|
|
}
|