blob: 4508017c12d205e7d2828c86f5bba4ce5eed2b6b [file] [log] [blame]
Daniel Jasperddd2dfc2013-09-24 09:14:14 +00001// RUN: rm -rf %t
Manuel Klimekee0cd372013-10-24 07:51:24 +00002// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
Daniel Jasperddd2dfc2013-09-24 09:14:14 +00003
4#include "g.h"
5#include "e.h"
6#include "f.h" // expected-error {{use of a module not declared used}}
7const int g2 = g1+e+f;