this repo has no description
at fixPythonPipStalling 35 lines 450 B view raw
1#include <stdio.h> 2#include <assert.h> 3#import <Foundation/NSObject.h> 4 5struct st 6{ 7 float f1; 8 int buf[50]; 9}; 10 11@interface helloclass : NSObject { 12} 13 14+ (struct st)mult:(float)a :(float)b; 15@end 16 17@implementation helloclass 18+ (struct st)mult:(float)a :(float)b 19{ 20 assert(self == [helloclass class]); 21 22 struct st s; 23 s.f1 = a+b; 24 return s; 25} 26@end 27 28int main() 29{ 30 struct st v = [helloclass mult:1.0f:2.0f]; 31 printf("%f\n", v.f1); 32 return 0; 33} 34 35