Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail13187.d
blob: 3799d7711e4641470fa1b3752006556713bb5065 [
file
] [
log
] [
blame
]
/*
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
);
}