Skip to content

Commit

Permalink
Fix wrong tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Oct 30, 2023
1 parent eccf81f commit 0c4dee8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test_regress/t/t_class_unsup_bad.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%Error: t/t_class_unsup_bad.v:29:24: Syntax error: 'const'/'rand'/'randc' not allowed before function/task declaration
29 | const function void func_const; endfunction
%Error: t/t_class_unsup_bad.v:28:24: Syntax error: 'const'/'rand'/'randc' not allowed before function/task declaration
28 | const function void func_const; endfunction
| ^~~~~~~~~~
%Error: Exiting due to
1 change: 0 additions & 1 deletion test_regress/t/t_class_unsup_bad.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class C #(parameter P=1);
function int classfunc; endfunction
virtual function void func_virtual; endfunction
pure virtual function void func_pure_virtual;
automatic function void func_automatic; endfunction
const function void func_const; endfunction
extern task exttask;
endclass
Expand Down
2 changes: 1 addition & 1 deletion test_regress/t/t_func_defaults.v
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endfunction

class Foo;
static int x;
function static int get_x;
static function int get_x;
return x;
endfunction
endclass
Expand Down
6 changes: 3 additions & 3 deletions test_regress/t/t_struct_cons_cast.v
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ class Cls;

state_info_t m_recur_states/*[uvm_object][uvm_object]*/[uvm_recursion_policy_enum];

automatic function uvm_recursion_policy_enum get_recursion_policy();
function uvm_recursion_policy_enum get_recursion_policy();
return UVM_DEEP;
endfunction

automatic function bit get_ret_val();
function bit get_ret_val();
return $c(1);
endfunction

automatic function void test();
function void test();
bit ret_val;
ret_val = $c1(1);
// See issue #4568
Expand Down

0 comments on commit 0c4dee8

Please sign in to comment.