2014-05-20 07:48:49 +08:00
|
|
|
// RUN: %clang_cc1 -arcmt-check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only %s 2>&1 | grep 'warning: \[rewriter\] call returns pointer to GC managed memory'
|
|
|
|
// RUN: %clang_cc1 -arcmt-check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only -x objective-c++ %s 2>&1 | grep 'warning: \[rewriter\] call returns pointer to GC managed memory'
|
2014-05-20 06:51:11 +08:00
|
|
|
// TODO: Investigate VerifyDiagnosticConsumer failures on these tests when using -verify.
|
2012-01-25 08:20:29 +08:00
|
|
|
// rdar://10532541
|
|
|
|
|
|
|
|
typedef unsigned NSUInteger;
|
|
|
|
void *__strong NSAllocateCollectable(NSUInteger size, NSUInteger options);
|
|
|
|
|
|
|
|
void test1() {
|
2014-05-20 06:51:11 +08:00
|
|
|
NSAllocateCollectable(100, 0);
|
2012-01-25 08:20:29 +08:00
|
|
|
}
|