Skip to content

Commit

Permalink
e2e test to validate ecall in sway assembly compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
zees-dev committed Feb 21, 2025
1 parent 1828d1d commit 6a01732
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[[package]]
name = "core"
source = "path+from-root-02C557D3012ABF18"

[[package]]
name = "ecall_basic"
source = "member"
dependencies = ["core"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[project]
name = "ecall_basic"
authors = ["Fuel Labs <[email protected]>"]
entry = "main.sw"
implicit-std = false
license = "Apache-2.0"

[dependencies]
core = { path = "../../../../../../../sway-lib-core" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
script;

fn main() {
asm(r1: 1u64, r2: 2u32, r3: 3u32, r4: 4u32) {
ecal r1 r2 r3 r4;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
category = "unit_tests_pass"

0 comments on commit 6a01732

Please sign in to comment.