1962b38e4SDaniel Jasper // RUN: rm -rf %t
2*47972afdSRichard Smith // RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
3962b38e4SDaniel Jasper 
4962b38e4SDaniel Jasper #include "g.h"
5962b38e4SDaniel Jasper #include "e.h"
6962b38e4SDaniel Jasper #include "f.h" // expected-error {{module XG does not depend on a module exporting 'f.h'}}
7962b38e4SDaniel Jasper #include "i.h" // expected-error {{module XG does not depend on a module exporting 'i.h'}}
8962b38e4SDaniel Jasper 
9962b38e4SDaniel Jasper const int g2 = g1 + e + f + aux_i;
10