diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 | 
| commit | 14f1b3e8826ce43b978db93a62d1166055db5394 (patch) | |
| tree | 0a00ad8d3498783fe0193f3b656bca17c4c8697d /packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m | |
| parent | 4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff) | |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m')
| -rw-r--r-- | packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m b/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m index 8bf0ec07b710..f013c5602395 100644 --- a/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m +++ b/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m @@ -25,10 +25,10 @@ int main()      ThingSummer *summer = [ThingSummer alloc];      struct things_to_sum tts = { 2, 3, 4 };      int ret = [summer sumThings:tts]; -      NSRect rect = {{0, 0}, {10, 20}};     - -    // Set breakpoint here. -    return rect.origin.x; +	// The Objective C V1 runtime won't read types from metadata so we need +	// NSValue in our debug info to use it in our test. +	NSValue *v = [NSValue valueWithRect:rect]; +    return rect.origin.x; // Set breakpoint here.    }  } | 
