diff options
| author | Enrico Granata <egranata@apple.com> | 2015-08-25 23:55:10 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-08-25 23:55:10 +0000 |
| commit | 54ed7e18f2b139d71888e4353d30374480f726ed (patch) | |
| tree | 2104cb2f2576b2f4845e45eeea4d33bf889dd1c0 /lldb/test/functionalities/data-formatter/nssetsynth/main.m | |
| parent | beb3a9a970a5c8fccf934c8653c1eadd7c9d815c (diff) | |
| download | bcm5719-llvm-54ed7e18f2b139d71888e4353d30374480f726ed.tar.gz bcm5719-llvm-54ed7e18f2b139d71888e4353d30374480f726ed.zip | |
Rename all functionalities/data-formatter test case with radar bug numbers in them to more meaningful names
llvm-svn: 245993
Diffstat (limited to 'lldb/test/functionalities/data-formatter/nssetsynth/main.m')
| -rw-r--r-- | lldb/test/functionalities/data-formatter/nssetsynth/main.m | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lldb/test/functionalities/data-formatter/nssetsynth/main.m b/lldb/test/functionalities/data-formatter/nssetsynth/main.m new file mode 100644 index 00000000000..7bc49583606 --- /dev/null +++ b/lldb/test/functionalities/data-formatter/nssetsynth/main.m @@ -0,0 +1,34 @@ +//===-- main.m ------------------------------------------------*- ObjC -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#import <Foundation/Foundation.h> + +int main (int argc, const char * argv[]) +{ + + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + + NSSet* set = [NSSet setWithArray:@[@1,@"hello",@2,@"world"]]; + NSMutableSet* mutable = [NSMutableSet setWithCapacity:5]; + [mutable addObject:@1]; + [mutable addObject:@2]; + [mutable addObject:@3]; + [mutable addObject:@4]; + [mutable addObject:@5]; + [mutable addObject:[NSURL URLWithString:@"www.apple.com"]]; + [mutable addObject:@[@1,@2,@3]]; + [mutable unionSet:set]; + [mutable removeAllObjects]; // Set break point at this line. + [mutable unionSet:set]; + [mutable addObject:@1]; + + [pool drain]; + return 0; +} + |

