diff options
Diffstat (limited to 'tests/syntax-tests/source/Objective-C/test.m')
-rw-r--r-- | tests/syntax-tests/source/Objective-C/test.m | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/syntax-tests/source/Objective-C/test.m b/tests/syntax-tests/source/Objective-C/test.m new file mode 100644 index 00000000..9ed16cba --- /dev/null +++ b/tests/syntax-tests/source/Objective-C/test.m @@ -0,0 +1,32 @@ +#import <myClass.h> +@import Foundation +// Single line comments + +/* + * Multi line comment + */ + +int main (int argc, const char * argv[]) { + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + + NSLog(@"Storage size for int : %d \n", sizeof(int)); + NSLog (@"hello world"); + if (NO) + { + NSLog(@"I am never run"); + } else if (0) + { + NSLog(@"I am also never run"); + } else + { + NSLog(@"I print"); + } + + [pool drain]; + return 0; +} + +@implementation MyClass { + long distance; + NSNumber height; +} |