diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-31 14:19:27 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-31 14:19:27 +0900 |
| commit | f398f71fa947dbf03587b1a28d314a969aa6b351 (patch) | |
| tree | 2e21ebaeacb9c0197d209b7398c749d538bdbe39 /internal/rosa | |
| parent | 4d017b13094ab29704aaee5b15d6e5db8a0842f5 (diff) | |
internal/pkg: input iterator via IR cache
Primarily useful for garbage collection.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
| -rw-r--r-- | internal/rosa/llvm_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
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) + } +} |
