1*f4a2713aSLionel Sambuc // RUN: rm -rf %t 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodules-decluse -fmodule-name=XH -I %S/Inputs/declare-use %s -verify 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc #include "h.h" 5*f4a2713aSLionel Sambuc #include "e.h" 6*f4a2713aSLionel Sambuc #include "f.h" // expected-error {{use of a module not declared used}} 7*f4a2713aSLionel Sambuc const int h2 = h1+e+f; 8