xref: /llvm-project/lldb/test/API/lang/objcxx/hide-runtime-values/main.mm (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1#import <Foundation/Foundation.h>
2
3void baz() {}
4
5struct MyClass {
6  void bar() {
7    baz(); // break here
8  }
9};
10
11@interface MyObject : NSObject {}
12- (void)foo;
13@end
14
15@implementation MyObject
16- (void)foo {
17  MyClass c;
18  c.bar(); // break here
19}
20@end
21
22int main (int argc, char const *argv[]) {
23    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
24    id obj = [MyObject new];
25    [obj foo];
26    [pool release];
27    return 0;
28}
29