summaryrefslogtreecommitdiffstats
path: root/test/modularize
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2013-09-03 18:48:43 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2013-09-03 18:48:43 +0000
commite1bb6746ddeed64ecd09b34a2d42a588b9eb7ad8 (patch)
tree0aab1c1a1699593305bb3e71c0b59dba8e7a37ad /test/modularize
parent25a9fa435ab5f932662e9786a1f83b7821310014 (diff)
Added header dependencies support.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@189837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/modularize')
-rw-r--r--test/modularize/Inputs/IsDependent.h4
-rw-r--r--test/modularize/Inputs/SomeOtherTypes.h4
-rw-r--r--test/modularize/NoProblemsDependencies.modularize3
3 files changed, 11 insertions, 0 deletions
diff --git a/test/modularize/Inputs/IsDependent.h b/test/modularize/Inputs/IsDependent.h
new file mode 100644
index 00000000..49281102
--- /dev/null
+++ b/test/modularize/Inputs/IsDependent.h
@@ -0,0 +1,4 @@
+// This header depends on SomeTypes.h for the TypeInt typedef.
+
+typedef TypeInt NewTypeInt;
+typedef OtherTypeInt OtherNewTypeInt;
diff --git a/test/modularize/Inputs/SomeOtherTypes.h b/test/modularize/Inputs/SomeOtherTypes.h
new file mode 100644
index 00000000..288faffb
--- /dev/null
+++ b/test/modularize/Inputs/SomeOtherTypes.h
@@ -0,0 +1,4 @@
+// Declare another type for the dependency check.
+// This file dependent on SomeTypes.h being included first.
+
+typedef TypeInt OtherTypeInt;
diff --git a/test/modularize/NoProblemsDependencies.modularize b/test/modularize/NoProblemsDependencies.modularize
new file mode 100644
index 00000000..bd5292b8
--- /dev/null
+++ b/test/modularize/NoProblemsDependencies.modularize
@@ -0,0 +1,3 @@
+# RUN: modularize %s -x c++
+
+Inputs/IsDependent.h: Inputs/SomeTypes.h Inputs/SomeOtherTypes.h