mB.c 297 B

1234567891011121314151617181920212223
  1. __attribute__((import_module("mA")))
  2. __attribute__((import_name("A1"))) extern int
  3. A1();
  4. __attribute__((export_name("B1"))) int
  5. B1()
  6. {
  7. return 21;
  8. }
  9. __attribute__((export_name("B2"))) int
  10. B2()
  11. {
  12. return A1();
  13. }
  14. int
  15. B3()
  16. {
  17. return 23;
  18. }
  19. /* mA is a reactor. it doesn't need a main() */