Skip to content

Commit

Permalink
add test case for cyclic dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
guipublic committed Dec 19, 2023
1 parent b162050 commit 7686509
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_programs/compile_failure/cyclic_dep/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "cyclic_dep"
type = "bin"
authors = [""]

[dependencies]
dep1 = { path= "./dep1"}
Empty file.
7 changes: 7 additions & 0 deletions test_programs/compile_failure/cyclic_dep/dep1/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "dep1"
type = "lib"
authors = [""]

[dependencies]
dep1 = { path= "../dep2"}
3 changes: 3 additions & 0 deletions test_programs/compile_failure/cyclic_dep/dep1/src/lib.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn bar() {

}
7 changes: 7 additions & 0 deletions test_programs/compile_failure/cyclic_dep/dep2/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "dep2"
type = "lib"
authors = [""]

[dependencies]
dep1 = { path= "../dep1"}
3 changes: 3 additions & 0 deletions test_programs/compile_failure/cyclic_dep/dep2/src/lib.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn foo() {

}
7 changes: 7 additions & 0 deletions test_programs/compile_failure/cyclic_dep/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use dep1::foo;
use dep2::bar;

fn main() {
dep1::foo();
dep2::bar();
}

0 comments on commit 7686509

Please sign in to comment.