summaryrefslogtreecommitdiff
path: root/clang/test/Driver/no-objc-arr.m
blob: e44939337a6afed5f1a61ad7b27c54aec730523e (about) (plain)
1
2
3
4
5
6
7
8
// RUN: %clang  -Werror -fobjc-arc -fsyntax-only -fno-objc-arc -Xclang -verify %s
// rdar://8949617

void * FOO() {
    id string = @"Hello World.\n";
    void *pointer = string; // No error must be issued
    return pointer;
}