fork download
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3.  
  4.  
  5. @interface TestObj
  6. {
  7. int num;
  8. }
  9. + (id) alloc;
  10. - (void)foo;
  11. @end
  12.  
  13. @implementation TestObj
  14. + (id) alloc {}
  15. - (void)foo {
  16. printf("foo\n");
  17. }
  18.  
  19. int main()
  20. {
  21. id obj;
  22. [obj foo];
  23. printf ("vsdvsdv");
  24. return 0;
  25. }
Success #stdin #stdout 0s 10160KB
stdin
Standard input is empty
stdout
vsdvsdv