Skip to content

Commit 4eb2190

Browse files
authored
Merge pull request #1243 from diffblue/named_property5
KNOWNBUG test for use of property as an expression
2 parents 7fd84cc + 97b7a99 commit 4eb2190

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
named_property5.sv
3+
4+
^EXIT=2$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This should be rejected.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module main;
2+
3+
property P;
4+
1
5+
endproperty
6+
7+
// This should be rejected -- && is for expressions
8+
assert property (P && P);
9+
10+
endmodule
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
named_property6.sv
3+
4+
^EXIT=2$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This should be rejected.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module main;
2+
3+
property P;
4+
1
5+
endproperty
6+
7+
// This is an error -- P is used as an expression
8+
wire x = P;
9+
10+
endmodule

0 commit comments

Comments
 (0)