Browse Source

Added a test exposing the incorrect translation unit of templated classes.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>

Conflicts:
	tests/NamespacesDerived/NamespacesDerived.h
pull/1140/head
Dimitar Dobrev 10 years ago
parent
commit
55170cef41
  1. 5
      tests/NamespacesBase/NamespacesBase.h
  2. 4
      tests/NamespacesDerived/NamespacesDerived.h

5
tests/NamespacesBase/NamespacesBase.h

@ -47,3 +47,8 @@ class DLL_API Abstract @@ -47,3 +47,8 @@ class DLL_API Abstract
public:
virtual void abstractFunction() = 0;
};
template <typename T>
class TemplateClass
{
};

4
tests/NamespacesDerived/NamespacesDerived.h

@ -43,6 +43,8 @@ class Base3 @@ -43,6 +43,8 @@ class Base3
{
};
template <typename T> class TemplateClass;
class Derived2 : public Base3
{
public:
@ -56,4 +58,6 @@ public: @@ -56,4 +58,6 @@ public:
void defaultEnumValueFromDependency(OverlappingNamespace::ColorsEnum c = OverlappingNamespace::ColorsEnum::black);
Abstract* getAbstract();
private:
TemplateClass<int> t;
};

Loading…
Cancel
Save