llvm-for-llvmta/tools/clang/test/Driver/no-objc-arr.m

10 lines
255 B
Mathematica
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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;
}