summaryrefslogtreecommitdiffstats
path: root/test/modularize
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-06-04 23:35:19 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-06-04 23:35:19 +0000
commit769f1da06254d223784dddf871dfe7c61b74ba95 (patch)
tree0501f10951d1e73d2e50312c612b247e95d8bc3c /test/modularize
parentf72b8a68dbaa92eabfdc782fec12049c50cee013 (diff)
Fixed modularize to warn about missing headers referenced in a module map.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@239122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/modularize')
-rw-r--r--test/modularize/Inputs/MissingHeader/Level1A.h1
-rw-r--r--test/modularize/Inputs/MissingHeader/module.modulemap10
-rw-r--r--test/modularize/ProblemsMissingHeader.modularize3
3 files changed, 14 insertions, 0 deletions
diff --git a/test/modularize/Inputs/MissingHeader/Level1A.h b/test/modularize/Inputs/MissingHeader/Level1A.h
new file mode 100644
index 00000000..10eef678
--- /dev/null
+++ b/test/modularize/Inputs/MissingHeader/Level1A.h
@@ -0,0 +1 @@
+#define MACRO_1A 1
diff --git a/test/modularize/Inputs/MissingHeader/module.modulemap b/test/modularize/Inputs/MissingHeader/module.modulemap
new file mode 100644
index 00000000..daa06fca
--- /dev/null
+++ b/test/modularize/Inputs/MissingHeader/module.modulemap
@@ -0,0 +1,10 @@
+// module.map
+
+module Level1A {
+ header "Level1A.h"
+ export *
+}
+module Missing {
+ header "Missing.h"
+ export *
+}
diff --git a/test/modularize/ProblemsMissingHeader.modularize b/test/modularize/ProblemsMissingHeader.modularize
new file mode 100644
index 00000000..bc731fb0
--- /dev/null
+++ b/test/modularize/ProblemsMissingHeader.modularize
@@ -0,0 +1,3 @@
+# RUN: not modularize %S/Inputs/MissingHeader/module.modulemap 2>&1 | FileCheck %s
+
+# CHECK: {{.*}}{{[/\\]}}Inputs/MissingHeader/module.modulemap:8:10: error : Header not found: Missing.h