Home | History | Annotate | Download | only in ARCMT
      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 
      7 typedef unsigned NSUInteger;
      8 void *__strong NSAllocateCollectable(NSUInteger size, NSUInteger options);
      9 
     10 void test1() {
     11   NSAllocateCollectable(100, 0); // expected-warning {{call returns pointer to GC managed memory; it will become unmanaged in ARC}}
     12 }
     13