I've seen no documentation on whether this is possible or not, and when I tried the following code, I get a revert error:
pragma solidity ^0.4.0;
contract Hello {
event TestEvent(uint256[] array);
function hello() public {
uint256[] memory output;
for (uint i = 0; i < 5; i++) {
output[i] = i;
}
TestEvent(output);
}
}
The compiler raises no warnings about this code, so I'm unsure if it's some other issue or because I'm trying to pass an array to an event.