abi9.ssa 311 B

1234567891011121314151617181920
  1. type :obj = { l, l, l, l }
  2. export
  3. function :obj $f(l %self) {
  4. @_0
  5. %_1 =l alloc8 16
  6. storel 77, %_1
  7. ret %_1
  8. }
  9. # >>> driver
  10. # #include <stdio.h>
  11. # typedef struct { long long a, b, c, d; } obj;
  12. # extern obj f();
  13. # int main() { obj ret = f(); printf("%lld\n", ret.a); return 0; }
  14. # <<<
  15. # >>> output
  16. # 77
  17. # <<<