diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/ARCMT/nsdata.m | 32 | ||||
-rw-r--r-- | clang/test/ARCMT/nsdata.m.result | 32 |
2 files changed, 0 insertions, 64 deletions
diff --git a/clang/test/ARCMT/nsdata.m b/clang/test/ARCMT/nsdata.m deleted file mode 100644 index c4a555d5bdc..00000000000 --- a/clang/test/ARCMT/nsdata.m +++ /dev/null @@ -1,32 +0,0 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result -// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -x objective-c %s > %t -// RUN: diff %t %s.result - -#include "Common.h" - -@interface NSData : NSObject -- (const void *)bytes; -@end - -typedef struct _NSRange { - NSUInteger location; - NSUInteger length; -} NSRange; - -@interface NSData (NSExtendedData) -- (void)getBytes:(void *)buffer length:(NSUInteger)length; -- (void)getBytes:(void *)buffer range:(NSRange)range; -@end - -@interface NSData (NSDeprecated) -- (void)getBytes:(void *)buffer; -@end - -void test(NSData* parmdata) { - NSData *data, *data2 = parmdata; - void *p = [data bytes]; - p = [data bytes]; - - [data2 getBytes:&p length:sizeof(p)]; - p = [parmdata bytes]; -} diff --git a/clang/test/ARCMT/nsdata.m.result b/clang/test/ARCMT/nsdata.m.result deleted file mode 100644 index 0ca2a713b5f..00000000000 --- a/clang/test/ARCMT/nsdata.m.result +++ /dev/null @@ -1,32 +0,0 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result -// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -x objective-c %s > %t -// RUN: diff %t %s.result - -#include "Common.h" - -@interface NSData : NSObject -- (const void *)bytes; -@end - -typedef struct _NSRange { - NSUInteger location; - NSUInteger length; -} NSRange; - -@interface NSData (NSExtendedData) -- (void)getBytes:(void *)buffer length:(NSUInteger)length; -- (void)getBytes:(void *)buffer range:(NSRange)range; -@end - -@interface NSData (NSDeprecated) -- (void)getBytes:(void *)buffer; -@end - -void test(NSData* parmdata __attribute__((objc_precise_lifetime))) { - NSData *data __attribute__((objc_precise_lifetime)), *data2 __attribute__((objc_precise_lifetime)) = parmdata; - void *p = [data bytes]; - p = [data bytes]; - - [data2 getBytes:&p length:sizeof(p)]; - p = [parmdata bytes]; -} |