Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
91c065df031c31bc350c1052607ca347e71c741d
/
.
/
src
/
Testcases
/
Google
/
chapter-6
/
6.19.5.5--enum_num.sv
blob: 784392b239ecc78c608b03c246e4c6fc9fbe11cc [
file
] [
log
] [
blame
]
/*
:name: enum_num
:description: enum num method tests
:should_fail: 0
:tags: 6.19.5.5
*/
module
top
();
typedef
enum
{
a
,
b
,
c
,
d
}
e
;
initial
begin
e val
=
a
;
int
n
=
val
.
num
();
end
endmodule