blob: 12689e9d9683e10ada7a7c20fba947925a605b99 [file] [log] [blame]
Daniel Jasperba7f2f72013-09-24 09:14:14 +00001// RUN: rm -rf %t
Richard Smith47972af2015-06-16 00:08:24 +00002// RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XH -I %S/Inputs/declare-use %s -verify
Daniel Jasperba7f2f72013-09-24 09:14:14 +00003
4#include "h.h"
5#include "e.h"
Daniel Jasper7e468e02013-12-11 09:11:12 +00006#include "f.h" // expected-error {{module XH does not depend on a module exporting 'f.h'}}
Daniel Jasperba7f2f72013-09-24 09:14:14 +00007const int h2 = h1+e+f;