xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/declare-use1.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: rm -rf %t
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
3f4a2713aSLionel Sambuc 
4f4a2713aSLionel Sambuc #include "g.h"
5f4a2713aSLionel Sambuc #include "e.h"
6*0a6a1f1dSLionel Sambuc #include "f.h" // expected-error {{module XG does not depend on a module exporting 'f.h'}}
7*0a6a1f1dSLionel Sambuc #include "i.h"
8*0a6a1f1dSLionel Sambuc const int g2 = g1 + e + f + aux_i;
9