Skip to content

Commit

Permalink
asm: add test that references undefined global macro
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Oct 30, 2024
1 parent 352ecf1 commit e63db58
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions asm/testdata/compiler-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,17 @@ global-macros:
output:
bytecode: "60646004"

global-macro-undef:
input:
code: |
push Calcullate(10)
files:
macros.evm: |
#define Calculate(x) $x*10
output:
errors:
- ':1: undefined macro Calcullate'

global-macros-include-after:
input:
code: |
Expand Down

0 comments on commit e63db58

Please sign in to comment.