mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-19 04:17:31 +02:00
add new syntax test files
This commit is contained in:
32
tests/syntax-tests/source/Objective-C/test.m
Normal file
32
tests/syntax-tests/source/Objective-C/test.m
Normal file
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user