Sean Callanan 226b70c154 Updated the revision of LLVM/Clang used by LLDB.
This takes two important changes:

- Calling blocks is now supported.  You need to
  cast their return values, but that works fine.

- We now can correctly run JIT-compiled
  expressions that use floating-point numbers.

Also, we have taken a fix that allows us to
ignore access control in Objective-C as in C++.

llvm-svn: 152286
2012-03-08 02:39:03 +00:00

20 lines
632 B
Objective-C

#import <Foundation/Foundation.h>
int main()
{
@autoreleasepool
{
// NSArrays
NSArray *immutable_array = @[ @"foo", @"bar" ];
NSMutableArray *mutable_array = [NSMutableArray arrayWithCapacity:2];
[mutable_array addObjectsFromArray:immutable_array];
// NSDictionaries
NSDictionary *immutable_dictionary = @{ @"key" : @"value" };
NSMutableDictionary *mutable_dictionary = [NSMutableDictionary dictionaryWithCapacity:1];
[mutable_dictionary addEntriesFromDictionary:immutable_dictionary];
NSLog(@"Stop here"); // Set breakpoint 0 here.
}
}