[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / declare-use1.cpp
blob492f97a5ebe904a9ad60063f1ce6f773ab117ecf
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
4 #include "g.h"
5 #include "e.h"
6 #include "f.h" // expected-error {{module XG does not depend on a module exporting 'f.h'}}
7 #include "i.h"
8 #include "sub.h"
9 const int g2 = g1 + e + f + aux_i + sub;