summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/highlighted/Objective-C/test.m
blob: 287c74002f8c4c5d849153d4c0b6ba2f389dcea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 [38;2;