repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Frontend
/
noderef_on_non_pointers.m
blob
de2f9dbde489568ef9870867374b0c64ff5d0c38
1
// RUN: %clang_cc1 -verify %s
2
3
#define NODEREF __attribute__((noderef))
4
5
@interface NSObject
6
+ (id)new;
7
@end
8
9
void func(void) {
10
id NODEREF obj = [NSObject new]; // expected-warning{{'noderef' can only be used on an array or pointer type}}
11
}