Files
iverilog/ivtest/ivltests/struct_line_info.v
T
Lars-Peter Clausen fa643cbfe1 Add regression tests for enum and struct line info
Check that when an error message for a enum or struct data type is
generated it points to the location of the declaration of the type.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-01-23 20:09:05 +01:00

25 lines
409 B
V

// Checks that the line and file information is correctly attached to a struct
// data type and will be used when printing an error message about the struct.
module test;
// Direct
struct packed {
real r;
} s1;
// Used in a struct
typedef struct packed {
real r;
} struct1_type;
// Used as a signal type
typedef struct packed {
struct1_type s;
real r;
} struct2_type;
struct2_type s2;
endmodule