From ba6c662669b0fb394bbabe35937c9c3ff4b45307 Mon Sep 17 00:00:00 2001 From: John Thompson Date: Thu, 8 Aug 2013 00:01:09 +0000 Subject: [PATCH] Expanded modularize tests. llvm-svn: 187943 --- .../test/modularize/Inputs/SomeDecls.h | 11 ++++++++++ .../test/modularize/Inputs/SomeTypes.h | 22 +++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/clang-tools-extra/test/modularize/Inputs/SomeDecls.h b/clang-tools-extra/test/modularize/Inputs/SomeDecls.h index af4d994d9169..8892b650c181 100644 --- a/clang-tools-extra/test/modularize/Inputs/SomeDecls.h +++ b/clang-tools-extra/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/clang-tools-extra/test/modularize/Inputs/SomeTypes.h b/clang-tools-extra/test/modularize/Inputs/SomeTypes.h index 46c4316fc93a..c5c7e7ae89f0 100644 --- a/clang-tools-extra/test/modularize/Inputs/SomeTypes.h +++ b/clang-tools-extra/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; + }; +} +*/ + -- 2.34.1