summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libsample/samplenamespace.h3
-rw-r--r--tests/samplebinding/typesystem_sample.xml4
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/libsample/samplenamespace.h b/tests/libsample/samplenamespace.h
index d00bbb1f..da01ac1f 100644
--- a/tests/libsample/samplenamespace.h
+++ b/tests/libsample/samplenamespace.h
@@ -99,6 +99,9 @@ public:
class DerivedFromNamespace : public SomeClass::SomeInnerClass::OkThisIsRecursiveEnough
{
public:
+ //only cause namespace confusion
+ enum SampleNamespace {
+ };
virtual OkThisIsRecursiveEnough* someVirtualMethod(OkThisIsRecursiveEnough* arg) { return arg; }
inline OkThisIsRecursiveEnough* methodReturningTypeFromParentScope() { return 0; }
};
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 319cc658..9d14681a 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -87,7 +87,9 @@
<enum-type name="OutValue"/>
<enum-type identified-by-value="AnonymousClassEnum_Value1"/>
- <object-type name="DerivedFromNamespace" />
+ <object-type name="DerivedFromNamespace">
+ <enum-type name="SampleNamespace"/>
+ </object-type>
<value-type name="SomeClass">
<value-type name="SomeInnerClass">
<object-type name="OkThisIsRecursiveEnough">