diff --git a/tests/Makefile.am b/tests/Makefile.am index 1f8a50f9..7892923f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -9,11 +9,13 @@ TEST_DLL = $(BUILD_DIR)/Test.dll NATIVE = \ MarshalingTests \ InheritanceTests \ - FieldTests + FieldTests \ + ManglingTests MANAGED = \ FieldTests.cs \ InheritanceTests.cs \ + ManglingTests.cs \ MarshalingTests.cs \ Support/CppNUnitAsserts.cs diff --git a/tests/ManglingTests.cs b/tests/ManglingTests.cs new file mode 100644 index 00000000..2b75bbe6 --- /dev/null +++ b/tests/ManglingTests.cs @@ -0,0 +1,16 @@ +using System; +using NUnit.Framework; + +namespace Tests { + + [TestFixture] + public class ManglingTests { + + [Test] + public void TestCompression1 () + { + Mangling.CompressionTest1 (null, "foo", null, "bar"); + } + } +} + diff --git a/tests/Native/ManglingTests.cpp b/tests/Native/ManglingTests.cpp new file mode 100644 index 00000000..b9d95749 --- /dev/null +++ b/tests/Native/ManglingTests.cpp @@ -0,0 +1,8 @@ + +#include "ManglingTests.h" +#include + +void Mangling::CompressionTest1 (const Mangling* a1, const char* a2, const Mangling* a3, const char* a4) +{ + printf ("CompressionTest1 mangled correctly"); +} diff --git a/tests/Native/ManglingTests.h b/tests/Native/ManglingTests.h new file mode 100644 index 00000000..b42c7113 --- /dev/null +++ b/tests/Native/ManglingTests.h @@ -0,0 +1,5 @@ + +class Mangling { +public: + static void CompressionTest1 (const Mangling* a1, const char* a2, const Mangling* a3, const char* a4); +}; \ No newline at end of file diff --git a/tests/Tests.csproj b/tests/Tests.csproj index 0fe937c7..59df7901 100644 --- a/tests/Tests.csproj +++ b/tests/Tests.csproj @@ -54,6 +54,7 @@ + @@ -76,6 +77,8 @@ + +