Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
      2 // expected-no-diagnostics
      3 
      4 @interface NSArray
      5 -(int)count;
      6 @end
      7 
      8 // <rdar://problem/14438917>
      9 char* f(NSArray *array) {
     10     return _Generic(__builtin_choose_expr(__builtin_types_compatible_p(__typeof__(array.count), void), 0.f, array.count),
     11                     unsigned int:"uint",
     12                     float:"void",
     13                     default: "ignored");
     14 }
     15