Richard Smith | 5974ee6 | 2014-10-22 23:52:04 +0000 | [diff] [blame^] | 1 | // RUN: rm -rf %t |
2 | // RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify | ||||
3 | // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify | ||||
4 | |||||
5 | #define GIMME_A_K | ||||
6 | #include "k.h" | ||||
7 | |||||
8 | #define GIMME_AN_L | ||||
9 | #include "l.h" // expected-error {{module XG does not depend on a module exporting 'l.h'}} | ||||
10 | |||||
11 | const int g = k + l; |