mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
17 lines
528 B
Text
17 lines
528 B
Text
platform "test-platform"
|
|
requires {} { main : _ }
|
|
exposes []
|
|
packages {}
|
|
imports []
|
|
provides [mainForHost]
|
|
|
|
# This case is important to test because the U128
|
|
# gives the whole struct an alignment of 16, but the
|
|
# Str is the largest variant, so the whole union has
|
|
# a size of 32 (due to alignment, rounded up from Str's 24),
|
|
# and the discriminant is stored in the 8+ bytes of padding
|
|
# that all variants have.
|
|
NonRecursive : [Foo Str, Bar U128, Blah I32, Baz]
|
|
|
|
mainForHost : NonRecursive
|
|
mainForHost = main
|