mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
14 lines
279 B
D
14 lines
279 B
D
// 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];
|
|
}
|