15 lines
300 B
LLVM
15 lines
300 B
LLVM
; expect: run
|
|
; result: 42
|
|
; phase: 6
|
|
; spec: docs/spec/03-memory-model.md §22
|
|
module test.nominal_queries
|
|
air 0
|
|
lang 0.1
|
|
features [capabilities, effects, heap, islands, ownership, resources]
|
|
type @N0 = struct { next: iref<@N0> }
|
|
fn @main() -> u64
|
|
effects []
|
|
entry:
|
|
%n = const.u64 42
|
|
ret %n
|