blob: 5ce36c40d6595e050f45080895b7413940f836f8 [file] [log] [blame]
Fariborz Jahanianb5c6bab2012-01-25 00:20:29 +00001// 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}