xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/declare-use2.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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