зеркало из https://github.com/mono/CppSharp.git
Test C++11 in-class member initializers
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
This commit is contained in:
Родитель
3313aa1939
Коммит
1209f1af42
|
@ -427,6 +427,7 @@ public class CommonTests
|
|||
{
|
||||
using (Foo foo = new Foo { A = 5, B = 5.5f })
|
||||
{
|
||||
Assert.That(foo.Init, Is.EqualTo(20));
|
||||
using (var copyFoo = new Foo(foo))
|
||||
{
|
||||
Assert.That(foo.A, Is.EqualTo(copyFoo.A));
|
||||
|
|
|
@ -89,6 +89,7 @@ public:
|
|||
Foo(const float& f);
|
||||
int A;
|
||||
float B;
|
||||
int Init = 20;
|
||||
IgnoredType ignoredType;
|
||||
int fixedArray[3];
|
||||
char fixedCharArray[3];
|
||||
|
|
Загрузка…
Ссылка в новой задаче