mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-07 01:56:52 +02:00
These tests check that a enum that is declared in a struct or class are correctly elaborated and also name collisions with the enum names are detected. Signed-off-by: Lars-Peter Clausen <[email protected]>
14 lines
225 B
Verilog
14 lines
225 B
Verilog
// Check that the enum names are added to the lexor scope of the class and
|
|
// name collisions with other symbols are reported as errors.
|
|
|
|
module test;
|
|
|
|
class C;
|
|
enum {
|
|
A = 10
|
|
} e;
|
|
typedef int A;
|
|
endclass
|
|
|
|
endmodule
|