summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/textual-headers.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-10-23 02:01:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-10-23 02:01:19 +0000
commitfeb54b6ded123f8118fdc20620d3f657dfeab485 (patch)
tree2d5da6d7e7177e958d8bab12f2d7b6a6d4aa832b /clang/test/Modules/textual-headers.cpp
parent7db296eba537ace7bf9f19e3fc3a71457d90084d (diff)
downloadbcm5719-llvm-feb54b6ded123f8118fdc20620d3f657dfeab485.tar.gz
bcm5719-llvm-feb54b6ded123f8118fdc20620d3f657dfeab485.zip
Refactor implementation of 'exclude header'.
This was not a real header role, and was never exposed to clients of ModuleMap. Remove the enumeration value for it and track it as marking the header as 'known' rather than creating an extra KnownHeader entry that *every single* client ignores. llvm-svn: 220460
Diffstat (limited to 'clang/test/Modules/textual-headers.cpp')
-rw-r--r--clang/test/Modules/textual-headers.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/Modules/textual-headers.cpp b/clang/test/Modules/textual-headers.cpp
index d1be8ad0321..54078999bd5 100644
--- a/clang/test/Modules/textual-headers.cpp
+++ b/clang/test/Modules/textual-headers.cpp
@@ -1,6 +1,6 @@
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
-// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
+// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodules-strict-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify -fmodules-no-error-recovery
#define GIMME_A_K
#include "k.h"
@@ -8,4 +8,11 @@
#define GIMME_AN_L
#include "l.h" // expected-error {{module XG does not depend on a module exporting 'l.h'}}
+#include "m2.h" // expected-error {{module XG does not depend on a module exporting 'm2.h'}}
+const int use_m = m;
+
+#define GIMME_AN_M
+#include "m.h"
+const int use_m_2 = m;
+
const int g = k + l;
OpenPOWER on IntegriCloud