aboutsummaryrefslogtreecommitdiffstats
path: root/tests/verilog/block_end_label_only.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/verilog/block_end_label_only.ys')
-rw-r--r--tests/verilog/block_end_label_only.ys9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/verilog/block_end_label_only.ys b/tests/verilog/block_end_label_only.ys
new file mode 100644
index 000000000..5db1c7879
--- /dev/null
+++ b/tests/verilog/block_end_label_only.ys
@@ -0,0 +1,9 @@
+logger -expect error "Begin label missing where end label \(incorrect_name\) was given\." 1
+read_verilog -sv <<EOF
+module top;
+initial
+ begin
+ $display("HI");
+ end : incorrect_name
+endmodule
+EOF