Chad Rosier | 2dec85b | 2012-03-13 20:09:56 +0000 | [diff] [blame] | 1 | // RUN: %clang -Werror -fobjc-arc -fsyntax-only -fno-objc-arc -Xclang -verify %s |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 2 | // rdar://8949617 |
3 | |||||
4 | void * FOO() { | ||||
5 | id string = @"Hello World.\n"; | ||||
6 | void *pointer = string; // No error must be issued | ||||
7 | return pointer; | ||||
8 | } |