16 lines
239 B
Plaintext
16 lines
239 B
Plaintext
ivy.module @test {
|
|
%cout = ivy.global-ref @cout
|
|
|
|
ivy.init-text {
|
|
%str = ivy.str.constant "hello"
|
|
%.str.0 = ivy.str.constant "done"
|
|
|
|
ivy.for-each %c in %str {
|
|
ivy.msg to %cout, -put:%c
|
|
}
|
|
|
|
ivy.msg to %cout, -put:%.str.0
|
|
|
|
}
|
|
}
|