diff options
| author | Sean Callanan <scallanan@apple.com> | 2014-11-04 00:06:34 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2014-11-04 00:06:34 +0000 |
| commit | 11533184d70bfe46a0cdf375cf7b3765d41347d1 (patch) | |
| tree | dd72069617e0ceb9450ade0a16e064520e19dc31 | |
| parent | 8f21174700c32a9e743a463317cbb7c9f7c230fd (diff) | |
| download | bcm5719-llvm-11533184d70bfe46a0cdf375cf7b3765d41347d1.tar.gz bcm5719-llvm-11533184d70bfe46a0cdf375cf7b3765d41347d1.zip | |
Added a test case for reading ivars from the
Objective-C runtime. We'll need to do more
(subclasses, partially-defined classes, etc.)
but this tests that at least the basics work.
llvm-svn: 221208
| -rw-r--r-- | lldb/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py | 4 | ||||
| -rw-r--r-- | lldb/test/lang/objc/objc-runtime-ivars/main.m | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lldb/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py b/lldb/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py new file mode 100644 index 00000000000..356979f0248 --- /dev/null +++ b/lldb/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py @@ -0,0 +1,4 @@ +import lldbinline +import lldbtest + +lldbinline.MakeInlineTest(__file__, globals(), [lldbtest.skipIfFreeBSD,lldbtest.skipIfLinux,lldbtest.skipIfWindows]) diff --git a/lldb/test/lang/objc/objc-runtime-ivars/main.m b/lldb/test/lang/objc/objc-runtime-ivars/main.m new file mode 100644 index 00000000000..e2d77fe9b8c --- /dev/null +++ b/lldb/test/lang/objc/objc-runtime-ivars/main.m @@ -0,0 +1,10 @@ +#import <Foundation/Foundation.h> + +int main () +{ + @autoreleasepool + { + NSLog(@"Hello"); //% self.expect("expression -- *((NSConcretePointerArray*)[NSPointerArray strongObjectsPointerArray])", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["count", "capacity", "options", "mutations"]); + //% self.expect("expression -- ((NSConcretePointerArray*)[NSPointerArray strongObjectsPointerArray])->count", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["unsigned long long"]); + } +} |

