xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/arc-unavailable-system-function.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin11 -fobjc-arc -verify %s
2f4a2713aSLionel Sambuc// rdar://10186625
3f4a2713aSLionel Sambuc
4f4a2713aSLionel Sambuc# 1 "<command line>"
5f4a2713aSLionel Sambuc# 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3
6*0a6a1f1dSLionel Sambucid * foo(); // expected-note {{'foo' has been explicitly marked unavailable here}}
7f4a2713aSLionel Sambuc
8f4a2713aSLionel Sambuc# 1 "arc-unavailable-system-function.m" 2
9f4a2713aSLionel Sambucvoid ret() {
10f4a2713aSLionel Sambuc  foo(); // expected-error {{'foo' is unavailable: this system declaration uses an unsupported type}}
11f4a2713aSLionel Sambuc}
12f4a2713aSLionel Sambuc
13f4a2713aSLionel Sambuc
14