Bruno Cardoso Lopes | f664a24a | 2017-05-23 23:53:17 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/diagnose-missing-import \ |
| 3 | // RUN: -Werror=implicit-function-declaration -fsyntax-only \ |
| 4 | // RUN: -fimplicit-module-maps -verify %s |
| 5 | @import NCI; |
| 6 | |
| 7 | void foo() { |
| 8 | 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'}} |
| 9 | } |
| 10 | |
| 11 | // expected-note@Inputs/diagnose-missing-import/a.h:5 {{previous declaration is here}} |
| 12 | // expected-note@Inputs/diagnose-missing-import/a.h:5 {{previous declaration is here}} |
| 13 | // expected-note@Inputs/diagnose-missing-import/a.h:6 {{previous declaration is here}} |
| 14 | |