blob: 492f97a5ebe904a9ad60063f1ce6f773ab117ecf [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=XG -I %S/Inputs/declare-use %s -verify
Daniel Jasperba7f2f72013-09-24 09:14:14 +00003
4#include "g.h"
5#include "e.h"
Daniel Jasper3cd34c72013-12-06 09:25:54 +00006#include "f.h" // expected-error {{module XG does not depend on a module exporting 'f.h'}}
Daniel Jasper4eaf0a62013-12-11 12:13:00 +00007#include "i.h"
Daniel Jasperb6ba46e2015-03-13 11:26:16 +00008#include "sub.h"
9const int g2 = g1 + e + f + aux_i + sub;