mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-09 07:36:06 +00:00

This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
20 lines
369 B
Objective-C
20 lines
369 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
int main ()
|
|
{
|
|
@autoreleasepool
|
|
{
|
|
struct foo {
|
|
int x;
|
|
int y;
|
|
} myFoo;
|
|
|
|
myFoo.x = 2;
|
|
myFoo.y = 3; // First breakpoint
|
|
|
|
NSString *string = [NSString stringWithFormat:@"%s", "Hello world!"];
|
|
|
|
NSLog(@"%d %@", myFoo.x, string); // Second breakpoint
|
|
}
|
|
}
|