Daniel Jasper | 962b38e | 2014-04-11 11:47:45 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify |
Daniel Jasper | 962b38e | 2014-04-11 11:47:45 +0000 | [diff] [blame] | 3 | |
| 4 | #include "g.h" |
| 5 | #include "e.h" |
| 6 | #include "f.h" // expected-error {{module XG does not depend on a module exporting 'f.h'}} |
| 7 | #include "i.h" // expected-error {{module XG does not depend on a module exporting 'i.h'}} |
| 8 | |
| 9 | const int g2 = g1 + e + f + aux_i; |