llvm/clang/test/Modules/declare-use-textual.cpp

// RUN: rm -rf %t
// RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=Textual -I %S/Inputs/declare-use %s -verify
// RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=Textual -I %S/Inputs/declare-use %s -fno-modules-validate-textual-header-includes

// [email protected]:* {{module Textual does not directly depend on a module exporting 'a.h', which is part of indirectly-used module XA}}
#include "textual.h"