bolt/deps/llvm-18.1.8/clang/test/Driver/no-objc-arr.m

9 lines
241 B
Mathematica
Raw Normal View History

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