1 // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2 // Test for assertion failure due to objc_externally_retained on a function.
5 // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-arc -include %s %s
8 // RUN: %clang_cc1 %s -emit-pch -fobjc-arc -o %t
9 // RUN: %clang_cc1 -emit-llvm-only -verify %s -fobjc-arc -include-pch %t -debug-info-kind=limited
11 // expected-no-diagnostics
15 //===----------------------------------------------------------------------===//
18 __attribute__((objc_externally_retained)) void doSomething(id someObject);
22 //===----------------------------------------------------------------------===//
24 //===----------------------------------------------------------------------===//
26 void callDoSomething(void) {
27 doSomething(sharedObject);
30 //===----------------------------------------------------------------------===//