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
/
Driver
/
no-objc-arr.m
blob
deaf6b9e00ad1df99781a12aacaf30d1f7171e46
1
// RUN: %clang -Werror -fobjc-arc -fsyntax-only -fno-objc-arc -Xclang -verify %s
2
// expected-no-diagnostics
3
4
void * FOO(void) {
5
id string = @"Hello World.\n";
6
void *pointer = string; // No error must be issued
7
return pointer;
8
}