mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
228 B
D
13 lines
228 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail13187.d(12): Error: `pure` function `fail13187.test` cannot access mutable static data `my_func_ptr`
|
|
---
|
|
*/
|
|
|
|
int function(int) pure my_func_ptr;
|
|
|
|
void test() pure
|
|
{
|
|
my_func_ptr(1);
|
|
}
|