bat/tests/syntax-tests/highlighted/Objective-C/test.m
2020-11-23 15:43:58 +01:00

33 lines
4.1 KiB
Matlab
Vendored
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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;
}