summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/highlighted/Objective-C/test.m
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syntax-tests/highlighted/Objective-C/test.m')
-rw-r--r--tests/syntax-tests/highlighted/Objective-C/test.m32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Objective-C/test.m b/tests/syntax-tests/highlighted/Objective-C/test.m
new file mode 100644
index 00000000..287c7400
--- /dev/null
+++ b/tests/syntax-tests/highlighted/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;
+}