summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/highlighted/Objective-C/test.m
diff options
context:
space:
mode:
authorhenil <dedaniahenil@gmail.com>2020-11-15 00:22:08 +0530
committerDavid Peter <sharkdp@users.noreply.github.com>2020-11-23 15:43:58 +0100
commit591eba66a3af1c211a09eefd17cbeb819b0a131f (patch)
treecf0b604f97314d567745498c85be1aec36e85f25 /tests/syntax-tests/highlighted/Objective-C/test.m
parenta5a9ac83e5a506ac2bdc673476aca54c818eabe2 (diff)
add new syntax test filesv0.17.0
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;
+}