diff --git a/tests/CSharpTemp/CSharpTemp.Tests.cs b/tests/CSharpTemp/CSharpTemp.Tests.cs index 6de8c429..9448d413 100644 --- a/tests/CSharpTemp/CSharpTemp.Tests.cs +++ b/tests/CSharpTemp/CSharpTemp.Tests.cs @@ -14,6 +14,14 @@ public class CSharpTempTests : GeneratorTestFixture } } + [Test] + public void TestIncompilableCode() + { + using (new ForceCreationOfInterface()) + { + } + } + [Test] public void TestIndexer() { diff --git a/tests/CSharpTemp/CSharpTemp.h b/tests/CSharpTemp/CSharpTemp.h index be3b147b..ce78ce22 100644 --- a/tests/CSharpTemp/CSharpTemp.h +++ b/tests/CSharpTemp/CSharpTemp.h @@ -68,6 +68,10 @@ private: Bar::Bar() {} +class DLL_API ForceCreationOfInterface : public Foo, public Bar +{ +}; + class DLL_API Baz : public Foo, public Bar { public: