Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwight Guth committed Mar 27, 2024
1 parent 2995561 commit 445c36a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions k-distribution/tests/regression-new/macro-rewrite/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DEF=test
EXT=test
TESTDIR=.
KOMPILE_BACKEND=llvm
KOMPILE_FLAGS=--syntax-module TEST

include ../../../include/kframework/ktest.mak
11 changes: 11 additions & 0 deletions k-distribution/tests/regression-new/macro-rewrite/test.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module TEST
imports INT
imports BOOL
imports LIST

syntax List ::= Int ":" List [macro]
rule I : L => ListItem(I) L

rule (5 => 6) : _

endmodule

0 comments on commit 445c36a

Please sign in to comment.