diff options
author | henil <dedaniahenil@gmail.com> | 2020-11-15 00:22:08 +0530 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-11-23 15:43:58 +0100 |
commit | 591eba66a3af1c211a09eefd17cbeb819b0a131f (patch) | |
tree | cf0b604f97314d567745498c85be1aec36e85f25 /tests/syntax-tests/source/Objective-C/test.m | |
parent | a5a9ac83e5a506ac2bdc673476aca54c818eabe2 (diff) |
add new syntax test filesv0.17.0
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; +} |