llvm-project/clang/test/Driver/no-objc-arr.m

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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;
}