We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9b7133 + 59345e3 commit 52d164aCopy full SHA for 52d164a
regression/verilog/expressions/cast_from_real2.desc
@@ -0,0 +1,9 @@
1
+KNOWNBUG
2
+cast_from_real2.sv
3
+
4
+^EXIT=0$
5
+^SIGNAL=0$
6
+--
7
+^warning: ignoring
8
9
+The implicit cast is currently not allowed.
regression/verilog/expressions/cast_from_real2.sv
@@ -0,0 +1,17 @@
+module main;
+ int a, b, c, d;
+ // implicit casting as part of an assignment
+ initial begin
+ a = 0.0;
+ assert(a == 0);
+ b = 1.0;
10
+ assert(b == 1);
11
+ c = 0.5;
12
+ assert(c == 1);
13
+ d = -0.5;
14
+ assert(d == -1);
15
+ end
16
17
+endmodule
0 commit comments