summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/declare-use2.cpp
blob: 15c57ca36d8af6038776bef222d33af7a5ef95bb (plain)
1
2
3
4
5
6
7
// RUN: rm -rf %t
// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodules-decluse -fmodule-name=XH -I %S/Inputs/declare-use %s -verify

#include "h.h"
#include "e.h"
#include "f.h" // expected-error {{does not depend on a module exporting}}
const int h2 = h1+e+f;
OpenPOWER on IntegriCloud