| 1 |
// RUN: rm -rf %t && mkdir -p %t |
| 2 |
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fapinotes-modules -fsyntax-only -F %S/Inputs/Frameworks %s -verify |
| 3 |
|
| 4 |
@import LayeredKit; |
| 5 |
|
| 6 |
void test( |
| 7 |
UpwardClass *okayClass, |
| 8 |
id <UpwardProto> okayProto, |
| 9 |
PerfectlyNormalClass *badClass // expected-error {{'PerfectlyNormalClass' is unavailable}} |
| 10 |
) { |
| 11 |
// expected-note@LayeredKitImpl/LayeredKitImpl.h:4 {{'PerfectlyNormalClass' has been explicitly marked unavailable here}} |
| 12 |
} |