xref: /llvm-project/clang/test/APINotes/top-level-private-modules.c (revision 932949dbb517b089af28fdc480a16a738ee5db78)
1 // RUN: rm -rf %t && mkdir -p %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fapinotes-modules -Wno-private-module -fsyntax-only -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -verify
3 
4 #include <PrivateLib.h>
5 #include <TopLevelPrivateKit/TopLevelPrivateKit_Private.h>
6 
7 void *testPlain = PrivateLib; // expected-error {{initializing 'void *' with an expression of incompatible type 'float'}}
8 void *testFramework = TopLevelPrivateKit_Private; // expected-error {{initializing 'void *' with an expression of incompatible type 'float'}}
9