diff options
author | Jim Ingham <jingham@apple.com> | 2011-07-08 20:48:47 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-07-08 20:48:47 +0000 |
commit | 576e96e0dc8ab560f79b1096f0a942cd0fa1dcb5 (patch) | |
tree | b8b916351b0b0186a46ad52359c5ddda845afcac /lldb/test/lang/objc/objc-static-method/static.m | |
parent | 4931bbc671cac2d902bb72ffecc2bb80f63ec457 (diff) | |
download | bcm5719-llvm-576e96e0dc8ab560f79b1096f0a942cd0fa1dcb5.tar.gz bcm5719-llvm-576e96e0dc8ab560f79b1096f0a942cd0fa1dcb5.zip |
New test to check that we can call functions in static methods in ObjC.
llvm-svn: 134736
Diffstat (limited to 'lldb/test/lang/objc/objc-static-method/static.m')
-rw-r--r-- | lldb/test/lang/objc/objc-static-method/static.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/test/lang/objc/objc-static-method/static.m b/lldb/test/lang/objc/objc-static-method/static.m new file mode 100644 index 00000000000..7201ce6f802 --- /dev/null +++ b/lldb/test/lang/objc/objc-static-method/static.m @@ -0,0 +1,20 @@ +#import <Foundation/Foundation.h> + +@interface Foo : NSObject ++(void) doSomethingWithString: (NSString *) string; + +@end + +@implementation Foo ++(void) doSomethingWithString: (NSString *) string +{ + NSLog (@"String is: %@.", string); // Set breakpoint here. + +} +@end + +int main() +{ + [Foo doSomethingWithString: @"Some string I have in mind."]; + return 0; +} |