blob: 3a3a2c965b86d43fe5a9b94388b712126302aa3e [file] [log] [blame]
// REQUIRED_ARGS: -o-
/*
TEST_OUTPUT:
---
fail_compilation/diag13787.d(12): Error: cannot slice function pointer `& main`
fail_compilation/diag13787.d(13): Error: cannot index function pointer `& main`
---
*/
void main()
{
auto a = (&main)[0..1];
auto x = (&main)[0];
}