-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mihai Budiu <[email protected]>
- Loading branch information
Mihai Budiu
authored
Oct 21, 2022
1 parent
94cc7eb
commit 26732f4
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
action NoAction(){} | ||
control eq0() | ||
{ | ||
table t { | ||
actions = {NoAction;} | ||
} | ||
apply { | ||
bool b = t == t; // { dg-error "" } | ||
} | ||
} | ||
control ne0() | ||
{ | ||
table t { | ||
actions = {NoAction;} | ||
} | ||
apply { | ||
bool b = t != t; // { dg-error "" } | ||
} | ||
} | ||
|
||
control c(); | ||
|
||
package top(c c1, c c2); | ||
top(eq0(), ne0()) main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
action NoAction() { | ||
} | ||
control eq0() { | ||
table t { | ||
actions = { | ||
NoAction; | ||
} | ||
} | ||
apply { | ||
bool b = t == t; | ||
} | ||
} | ||
|
||
control ne0() { | ||
table t { | ||
actions = { | ||
NoAction; | ||
} | ||
} | ||
apply { | ||
bool b = t != t; | ||
} | ||
} | ||
|
||
control c(); | ||
package top(c c1, c c2); | ||
top(eq0(), ne0()) main; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
issue3589.p4(8): [--Werror=type-error] error: ==: tables cannot be compared | ||
bool b = t == t; // { dg-error "" } | ||
^^^^^^ | ||
issue3589.p4(17): [--Werror=type-error] error: !=: tables cannot be compared | ||
bool b = t != t; // { dg-error "" } | ||
^^^^^^ |