Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
1b0062119887da734c600d091a65c037f5fafa7d
/
.
/
SVIncCompil
/
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