NAME=objc hello-objc not encrypted
FILE=../bins/mach0/hello-objc
EXPECT=<<EOF
0x100001180 [0x100000da0 - 0x100000e20]    128 class 0 Person :: NSObject
0x100000da0 method 0      sayHello
0x100000df0 method 1      name
0x100000e20 method 2      setName:
EOF
CMDS=<<EOF
ic
EOF
RUN

NAME=objc generics-objc
FILE=../bins/mach0/generics-objc
EXPECT=<<EOF
0x100001120 [0x100000e70 - 0x100000e70]      0 class 0 MyCustomClass :: NSObject
0x100000e70 method 0      doSomethingWithGeneric:
EOF
CMDS=<<EOF
ic
EOF
RUN

NAME=objc method flags (ic ViewController)
FILE=../bins/mach0/TestMethods
EXPECT=<<EOF
class ViewController
0x10000676c method ViewController      viewDidLoad
0x1000067d0 method ViewController      didReceiveMemoryWarning
0x1000067bc method ViewController c    thisIsAClassMethod
0x100006820 method ViewController c    andAnotherOne
EOF
CMDS=<<EOF
ic ViewController
EOF
RUN

NAME=objc method flags (icj)
FILE=../bins/mach0/TestMethods
EXPECT=<<EOF
class
EOF
CMDS=<<EOF
icj~{[0].methods[2].flags[0]}
EOF
RUN

NAME=objc method flags (ic*)
FILE=../bins/mach0/TestMethods
EXPECT=<<EOF
"f method.class.ViewController.thisIsAClassMethod = 0x1000067bc"
EOF
CMDS=<<EOF
ic*~thisIsAClassMethod
EOF
RUN

NAME=objc categories (mangled)
FILE=../bins/mach0/Alamofire-stripped
CMDS=<<EOF
ic Alamofire.SessionDelegate(Alamofire)~?
EOF
EXPECT=<<EOF
4
EOF
RUN
