aboutsummaryrefslogtreecommitdiff
path: root/clang/test/APINotes/objc-forward-declarations.m
blob: e82bed20555049b968cefe30faaf30c8d2f36a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: rm -rf %t && mkdir -p %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fapinotes-modules -fsyntax-only -F %S/Inputs/Frameworks %s -verify

@import LayeredKit;

void test(
  UpwardClass *okayClass,
  id <UpwardProto> okayProto,
  PerfectlyNormalClass *badClass // expected-error {{'PerfectlyNormalClass' is unavailable}}
) {
  // expected-note@LayeredKitImpl/LayeredKitImpl.h:4 {{'PerfectlyNormalClass' has been explicitly marked unavailable here}}
}