Skip to content

Commit ab251bf

Browse files
committed
KNOWNBUG test for function in compilation unit scope
1 parent 1c7277f commit ab251bf

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)