From f398f71fa947dbf03587b1a28d314a969aa6b351 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 31 May 2026 14:19:27 +0900 Subject: internal/pkg: input iterator via IR cache Primarily useful for garbage collection. Signed-off-by: Ophestra --- internal/rosa/llvm_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 internal/rosa/llvm_test.go (limited to 'internal/rosa') diff --git a/internal/rosa/llvm_test.go b/internal/rosa/llvm_test.go new file mode 100644 index 00000000..de63cb6b --- /dev/null +++ b/internal/rosa/llvm_test.go @@ -0,0 +1,21 @@ +package rosa_test + +import ( + "testing" + + "hakurei.app/internal/pkg" + "hakurei.app/internal/rosa" +) + +func TestLLVMInputs(t *testing.T) { + const wantInputCount = 688 + + _, llvm := rosa.Native().Std().MustLoad(rosa.H("llvm")) + var n int + for range pkg.Inputs(llvm) { + n++ + } + if n != wantInputCount { + t.Errorf("Inputs: %d, want %d", n, wantInputCount) + } +} -- cgit v1.3.1