Skip to content

Commit ec594e2

Browse files
authored
Merge pull request #1255 from diffblue/compilation_unit_scope_function
KNOWNBUG test for function in compilation unit scope
2 parents 85aaf26 + ab251bf commit ec594e2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
compilation_unit_scope_function.sv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
The function identifier is not found at the call site.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// a function in comilation unit scope
2+
function integer my_func;
3+
my_func = 123;
4+
endfunction
5+
6+
module main;
7+
localparam P = my_func();
8+
assert final (P == 123);
9+
endmodule

0 commit comments

Comments
 (0)