blob: 2592d51e47915120f1206c50484c593b06ad4b9a [file] [log] [blame]
/*
:name: function_automatic
:description: automatic function test
:should_fail: 0
:tags: 13.4.2
:type: simulation parsing
*/
module top();
function automatic int add(int val);
int a = 0;
a = a + val;
return a;
endfunction
initial
begin
$display(":assert: (%d == 5)", add(5));
$display(":assert: (%d == 5)", add(5));
$display(":assert: (%d == 5)", add(5));
$display(":assert: (%d == 5)", add(5));
end
endmodule