verilator/test_regress/t/t_source_sync_bad.v
Arkadiusz Kozdra 5b56c80830
Better error recovery (#5493)
Signed-off-by: Arkadiusz Kozdra <akozdra@antmicro.com>
2024-09-27 20:38:49 +02:00

35 lines
769 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2020 by Dan Petrisko.
// SPDX-License-Identifier: CC0-1.0
package pkg;
class cls;
typedef unknown defu;
typedef int defi;
endclass
endpackage
module t;
task tsk;
begin
Invalid1 invalid1; // invalid declaration
pkg::cls::defi valid1; // valid declaration
pkg::cls::defu valid2; // valid declaration
Invalid2 invalid2; // invalid declaration
valid1 = 5; // valid statement
pkg::cls::defi invalid; // invalid statement
end
endtask
endmodule
typedef struct packed {
logic clk /*verilator clocker*/;
logic data;
} ss_s;
endmodule