fork(1) download
  1. #import <stdio.h>
  2. #import <objc/objc.h>
  3. #import <objc/Object.h>
  4.  
  5. @interface Hello : Object
  6. - (void)hello;
  7. @end
  8.  
  9. @implementation Hello
  10. - (void)hello {
  11. printf("Hello world\n");
  12. }
  13. @end
  14.  
  15. int main() {
  16. id obj = [Hello alloc];
  17. [obj hello];
  18. return 0;
  19. }
  20. /* end */
  21.  
Success #stdin #stdout 0.01s 10176KB
stdin
Standard input is empty
stdout
Hello world