noderef_on_non_pointers.m 239 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 // RUN: %clang_cc1 -verify %s #define NODEREF __attribute__((noderef)) @interface NSObject + (id)new; @end void func() { id NODEREF obj = [NSObject new]; // expected-warning{{'noderef' can only be used on an array or pointer type}} }