-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning for unknown attribute (#207)
* Add warning for unknown attribute * Changes
- Loading branch information
Showing
10 changed files
with
96 additions
and
25 deletions.
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
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
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
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,36 @@ | ||
; File auto-generated by gentests.ml | ||
|
||
; Auto-generated part begin | ||
; Test for unknown_attr.smt2 | ||
; Incremental test | ||
|
||
(rule | ||
(target unknown_attr.incremental) | ||
(deps (:input unknown_attr.smt2)) | ||
(package dolmen_bin) | ||
(action (chdir %{workspace_root} | ||
(with-outputs-to %{target} | ||
(with-accepted-exit-codes (or 0 (not 0)) | ||
(run dolmen --mode=incremental --color=never %{input} %{read-lines:flags.dune})))))) | ||
(rule | ||
(alias runtest) | ||
(package dolmen_bin) | ||
(action (diff unknown_attr.expected unknown_attr.incremental))) | ||
|
||
; Full mode test | ||
|
||
(rule | ||
(target unknown_attr.full) | ||
(deps (:input unknown_attr.smt2)) | ||
(package dolmen_bin) | ||
(action (chdir %{workspace_root} | ||
(with-outputs-to %{target} | ||
(with-accepted-exit-codes (or 0 (not 0)) | ||
(run dolmen --mode=full --color=never %{input} %{read-lines:flags.dune})))))) | ||
(rule | ||
(alias runtest) | ||
(package dolmen_bin) | ||
(action (diff unknown_attr.expected unknown_attr.full))) | ||
|
||
|
||
; Auto-generated part end |
Empty file.
8 changes: 8 additions & 0 deletions
8
tests/typing/warnings/unknown_attribute/unknown_attr.expected
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,8 @@ | ||
File "tests/typing/warnings/unknown_attribute/unknown_attr.smt2", line 5, character 6-32: | ||
5 | :qid |somefile.ext.161:23| | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Warning Unknown attribute (the attribtue was ignored): `:qid` | ||
File "tests/typing/warnings/unknown_attribute/unknown_attr.smt2", line 6, character 6-19: | ||
6 | :skolemid |0| | ||
^^^^^^^^^^^^^ | ||
Warning Unknown attribute (the attribtue was ignored): `:skolemid` |
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,10 @@ | ||
(set-logic ALL) | ||
(assert | ||
(forall ((v Int)) | ||
(! (= v v) | ||
:qid |somefile.ext.161:23| | ||
:skolemid |0| | ||
:pattern (v) | ||
) | ||
) | ||
) |