| 1 | // 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' |
| 2 | // 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' |
| 3 | // TODO: Investigate VerifyDiagnosticConsumer failures on these tests when using -verify. |
| 4 | // rdar://10532541 |
| 5 | |
| 6 | typedef unsigned NSUInteger; |
| 7 | void *__strong NSAllocateCollectable(NSUInteger size, NSUInteger options); |
| 8 | |
| 9 | void test1() { |
| 10 | NSAllocateCollectable(100, 0); |
| 11 | } |
| 12 | |