2017-05-24 07:53:17 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/diagnose-missing-import \
|
|
|
|
// RUN: -Werror=implicit-function-declaration -fsyntax-only \
|
|
|
|
// RUN: -fimplicit-module-maps -verify %s
|
|
|
|
@import NCI;
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
XYZLogEvent(xyzRiskyCloseOpenParam, xyzRiskyCloseOpenParam); // expected-error {{implicit declaration of function 'XYZLogEvent'}} expected-error {{declaration of 'XYZLogEvent' must be imported}} expected-error {{declaration of 'xyzRiskyCloseOpenParam' must be imported from module 'NCI.A'}} expected-error {{declaration of 'xyzRiskyCloseOpenParam' must be imported from module 'NCI.A'}}
|
|
|
|
}
|
|
|
|
|
2020-04-29 09:22:34 +08:00
|
|
|
// expected-note@Inputs/diagnose-missing-import/a.h:5 {{declaration here is not visible}}
|
|
|
|
// expected-note@Inputs/diagnose-missing-import/a.h:5 {{declaration here is not visible}}
|
|
|
|
// expected-note@Inputs/diagnose-missing-import/a.h:6 {{declaration here is not visible}}
|
2017-05-24 07:53:17 +08:00
|
|
|
|