1// RUN: %clang_cc1 -arcmt-check -verify -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only %s
2// RUN: %clang_cc1 -arcmt-check -verify -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only -x objective-c++ %s
3// DISABLE: mingw32
4// rdar://10532541
5// XFAIL: *
6
7typedef unsigned NSUInteger;
8void *__strong NSAllocateCollectable(NSUInteger size, NSUInteger options);
9
10void test1() {
11  NSAllocateCollectable(100, 0); // expected-warning {{call returns pointer to GC managed memory; it will become unmanaged in ARC}}
12}
13