teak-llvm/lldb/packages/Python/lldbsuite/test/lang/objcxx/hide-runtime-values/main.mm
Adrian Prantl 1db0f0ca98 Hide runtime support values such as clang's __vla_expr from frame variable
by respecting the "artificial" attribute on variables. Function
arguments that are artificial and useful to end-users are being
whitelisted by the language runtime.

<rdar://problem/45322477>

Differential Revision: https://reviews.llvm.org/D61451

llvm-svn: 359841
2019-05-02 23:07:23 +00:00

29 lines
439 B
Plaintext

#import <Foundation/Foundation.h>
void baz() {}
struct MyClass {
void bar() {
baz(); // break here
}
};
@interface MyObject : NSObject {}
- (void)foo;
@end
@implementation MyObject
- (void)foo {
MyClass c;
c.bar(); // break here
}
@end
int main (int argc, char const *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
id obj = [MyObject new];
[obj foo];
[pool release];
return 0;
}