forked from OSchip/llvm-project
[analyzer] Add test case for handling of __bridge_transfer that previously resulted in a 'stack address' warning (that was fixed in r138616). Fixes <rdar://problem/10018376>.
llvm-svn: 138710
This commit is contained in:
parent
3a039e339f
commit
6eb83cfacd
|
@ -147,3 +147,9 @@ void test_objc_unretainedObject() {
|
||||||
(void) x;
|
(void) x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Previously this resulted in a "return of stack address" warning.
|
||||||
|
id test_return() {
|
||||||
|
id x = (__bridge_transfer id) CFCreateString();
|
||||||
|
return x; // no-warning
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue