diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2013-09-04 20:45:43 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2013-09-04 20:45:43 +0000 |
commit | a3667c1c7f516724865732da00043f481218acc9 (patch) | |
tree | 94680ff7b62de0fd5b741866bd95db727c4a509c /test/modularize | |
parent | 9435a894cbe7f539664f6338b2be6584315d56fd (diff) |
modularize - Fix of header dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@189983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/modularize')
-rw-r--r-- | test/modularize/Inputs/IsDependent.h | 4 | ||||
-rw-r--r-- | test/modularize/Inputs/SomeOtherTypes.h | 4 | ||||
-rw-r--r-- | test/modularize/NoProblemsDependencies.modularize | 3 |
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 |