diff options
| author | Daniel Jasper <djasper@google.com> | 2013-12-11 09:11:12 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-12-11 09:11:12 +0000 |
| commit | 7e468e0f681e895d7ae6f61f8b6772cadad2fc88 (patch) | |
| tree | 525e2272535759183fe3da8e3660edb777192ad0 /clang/test/Modules/declare-use2.cpp | |
| parent | 7e4660508d6c6bab548657302abe30238f54d515 (diff) | |
| download | bcm5719-llvm-7e468e0f681e895d7ae6f61f8b6772cadad2fc88.tar.gz bcm5719-llvm-7e468e0f681e895d7ae6f61f8b6772cadad2fc88.zip | |
Change layering warning tests to not actually build modules.
Specifically, we want to warn only for direct layering violations for
the modules we are calling clang on.
This temporarily unblocks
http://llvm-reviews.chandlerc.com/D2374
Once that is in, we'll also want to investigate whether to check the
layering in the build step of modules that we build transitively.
llvm-svn: 197021
Diffstat (limited to 'clang/test/Modules/declare-use2.cpp')
| -rw-r--r-- | clang/test/Modules/declare-use2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Modules/declare-use2.cpp b/clang/test/Modules/declare-use2.cpp index 15c57ca36d8..45352891685 100644 --- a/clang/test/Modules/declare-use2.cpp +++ b/clang/test/Modules/declare-use2.cpp @@ -1,7 +1,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 +// RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -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}} +#include "f.h" // expected-error {{module XH does not depend on a module exporting 'f.h'}} const int h2 = h1+e+f; |

