verilator/test_regress/t/t_parse_sync_bad.v

30 lines
539 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2020 Dan Petrisko
// SPDX-License-Identifier: CC0-1.0
package pkg;
2026-03-10 02:38:29 +01:00
class cls;
typedef unknown defu;
typedef int defi;
endclass
endpackage
module t;
2026-03-10 02:38:29 +01:00
task tsk;
begin
valid1 = 5; // valid statement
2026-03-10 02:38:29 +01:00
pkg::cls::defi invalid; // invalid statement
end
endtask
endmodule
typedef struct packed {
2026-03-10 02:38:29 +01:00
logic clk /*verilator clocker*/;
logic data;
} ss_s;
endmodule