minix/external/bsd/llvm/dist/clang/test/Driver/no-objc-arr.m

10 lines
255 B
Mathematica
Raw Normal View History

// RUN: %clang -Werror -fobjc-arc -fsyntax-only -fno-objc-arc -Xclang -verify %s
// expected-no-diagnostics
// rdar://8949617
void * FOO() {
id string = @"Hello World.\n";
void *pointer = string; // No error must be issued
return pointer;
}