Manuel Klimek | 98a9a6c | 2014-03-19 10:22:36 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -include "g.h" -include "e.h" -include "f.h" -include "i.h" -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify |
James Y Knight | ab0116e | 2023-01-30 15:05:29 -0500 | [diff] [blame] | 3 | // expected-error {{module XG does not directly depend on a module exporting 'f.h', which is part of indirectly-used module XF}} |
Manuel Klimek | 98a9a6c | 2014-03-19 10:22:36 +0000 | [diff] [blame] | 4 | const int g2 = g1 + e + f + aux_i; |