diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2013-08-08 00:01:09 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2013-08-08 00:01:09 +0000 |
commit | 601d5499f7d4f9be214a34250db8bebc2dc49662 (patch) | |
tree | 4347ed5856d72ee654b7717158bbedac3bd7ce01 /test/modularize | |
parent | c36e59d1403ef5b8c62b45372fe325406d498881 (diff) |
Expanded modularize tests.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/modularize')
-rw-r--r-- | test/modularize/Inputs/SomeDecls.h | 11 | ||||
-rw-r--r-- | test/modularize/Inputs/SomeTypes.h | 22 |
2 files changed, 33 insertions, 0 deletions
diff --git a/test/modularize/Inputs/SomeDecls.h b/test/modularize/Inputs/SomeDecls.h index af4d994d..8892b650 100644 --- a/test/modularize/Inputs/SomeDecls.h +++ b/test/modularize/Inputs/SomeDecls.h @@ -3,3 +3,14 @@ void FuncOne(); int FuncTwo(int arg); + +void FuncOverload(int arg) {} +void FuncOverload(char *arg) {} + +namespace Namespace1 { + void FuncNameSpace() {} +} + +namespace Namespace2 { + void FuncNameSpace() {} +} diff --git a/test/modularize/Inputs/SomeTypes.h b/test/modularize/Inputs/SomeTypes.h index 46c4316f..c5c7e7ae 100644 --- a/test/modularize/Inputs/SomeTypes.h +++ b/test/modularize/Inputs/SomeTypes.h @@ -14,3 +14,25 @@ public: private: int Member; }; + +/* +This currently doesn't work. Can't handle same name in different namespaces. +namespace Namespace1 { + class NamespaceClass { + public: + NamespaceClass() : Member(0) {} + private: + int Member; + }; +} + +namespace Namespace2 { + class NamespaceClass { + public: + NamespaceClass() : Member(0) {} + private: + int Member; + }; +} +*/ + |