From 7e67b8b11b71abc41056945be1d0a2b3f4da23d1 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sat, 23 Apr 2022 18:52:35 -0700 Subject: [PATCH] Add br_gh699 regression test. --- ivtest/ivltests/br_gh699.v | 9 +++++++++ ivtest/regress-sv.list | 1 + 2 files changed, 10 insertions(+) create mode 100644 ivtest/ivltests/br_gh699.v diff --git a/ivtest/ivltests/br_gh699.v b/ivtest/ivltests/br_gh699.v new file mode 100644 index 000000000..841801109 --- /dev/null +++ b/ivtest/ivltests/br_gh699.v @@ -0,0 +1,9 @@ + +// This should generate an error reporting the undef_func, but not segfault. +module test1; + function [31:0] func1 (input [31:0] x); + return undef_func(x); + endfunction : func1 + + localparam X = func1(1); +endmodule : test1 diff --git a/ivtest/regress-sv.list b/ivtest/regress-sv.list index aa1b7517c..d28634ee3 100644 --- a/ivtest/regress-sv.list +++ b/ivtest/regress-sv.list @@ -210,6 +210,7 @@ br_gh568 normal,-g2009 ivltests br_gh661a normal,-g2009 ivltests br_gh661b normal,-g2009 ivltests br_gh672 normal,-g2009 ivltests +br_gh699 CE,-g2009 ivltests br_ml20171017 normal,-g2009 ivltests br_ml20180227 CE,-g2009 ivltests br_ml20180309a normal,-g2009 ivltests