verilator/test_regress/t/t_case_enum_incomplete_bad.v

24 lines
395 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: SystemVerilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2022 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
module t;
2026-03-08 23:26:40 +01:00
enum logic [2:0] {
S0,
S1,
S2
} state;
2026-03-08 23:26:40 +01:00
initial begin
state = S1;
2026-03-08 23:26:40 +01:00
unique case (state)
S0: $stop;
S2: $stop;
endcase
end
endmodule