Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/fix-unbox-struct
/
.
/
tests
/
lean
/
unboxStruct.lean
blob: 7b6fccb237de96e27dbbaa6489fedbcf87c21c7b [
file
] [
edit
]
structure
AddrSpace
where
index
:
UInt32
@[
extern
"foo"
]
constant foo
(
addrSpace
:
AddrSpace
)
:
IO
PUnit
set_option trace
.
compiler
.
ir
.
result
true
in
--
should accept
and
pass
an unboxed
`uint32`
def
test2
:
AddrSpace
→
IO
PUnit
:=
foo