Sign in
llvm
/
clang
/
e43eb432de21ed58e59e9fa7514750b901396916
/
.
/
test
/
Frontend
/
noderef_on_non_pointers.m
blob: ced7627bb5e8d194a27cc59a93bd3e89e0549c99 [
file
] [
log
] [
blame
]
// 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}}
}