Browse Source

Test for consistent struct/class keywords.

Tests for cases where class name matches translation unit name.
Tests for cases where global constants/functions from different translation units would end up in the value type.
pull/1022/head
Rokas Kupstys 8 years ago
parent
commit
4e735b5b61
  1. 1
      tests/CSharp/CSharp.cs
  2. 6
      tests/CSharp/CSharp.h

1
tests/CSharp/CSharp.cs

@ -36,6 +36,7 @@ namespace CppSharp.Tests @@ -36,6 +36,7 @@ namespace CppSharp.Tests
ctx.SetClassAsValueType("QPoint");
ctx.SetClassAsValueType("QSize");
ctx.SetClassAsValueType("QRect");
ctx.SetClassAsValueType("CSharp");
ctx.SetClassAsValueType("StructTestArrayTypeFromTypedef");
ctx.IgnoreClassWithName("IgnoredTypeInheritingNonIgnoredWithNoEmptyCtor");
ctx.IgnoreClassWithName("Ignored");

6
tests/CSharp/CSharp.h

@ -1266,3 +1266,9 @@ public: @@ -1266,3 +1266,9 @@ public:
~HasFixedArrayOfPointers();
Foo* fixedArrayOfPointers[3];
};
struct DLL_API CSharp
{
};
static int FOOBAR_CONSTANT = 42;

Loading…
Cancel
Save