Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
713605cadef845b9f44d6469208fb6e902ace095
/
.
/
SVIncCompil
/
Testcases
/
Google
/
chapter-6
/
6.19.4--enum_numerical_expr_cast.sv
blob: c2fdac5c5bda42d1bbbb10ae284593282df6233b [
file
] [
log
] [
blame
]
/*
:name: enum_numerical_expr_cast
:description: enum numerical expression with casting
:should_fail: 0
:tags: 6.19.4
*/
module
top
();
typedef
enum
{
a
,
b
,
c
,
d
}
e
;
initial
begin
e val
;
val
=
a
;
val
=
e
'(val+1);
end
endmodule