Skip to content

Commit

Permalink
Add regression test for issue 2426.
Browse files Browse the repository at this point in the history
  • Loading branch information
strRM committed Nov 13, 2024
1 parent 73edcf3 commit 03c741f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/scheduler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ endfunction()
if (NOT MSVC)
souffle_add_scheduler_test(functionality)
souffle_add_scheduler_test(eqrel)
souffle_add_scheduler_test(bug2426)
endif()
9 changes: 9 additions & 0 deletions tests/scheduler/bug2426/bug2426.dl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.decl A(x:float)
.decl B(x: unsigned)
.decl res(a:float)
.output res

A(-1).
B(1).

res(a) :- B(x), A(a).
3 changes: 3 additions & 0 deletions tests/scheduler/bug2426/bug2426.err
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Warning: Variable x only occurs once in file bug2426.dl at line 9
res(a) :- B(x), A(a).
------------^---------
Empty file.
1 change: 1 addition & 0 deletions tests/scheduler/bug2426/res.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1

0 comments on commit 03c741f

Please sign in to comment.