From 1024f167154aa37e754fa46abad84a528ea9f99e Mon Sep 17 00:00:00 2001 From: sobaya Date: Tue, 30 Jul 2019 23:04:02 +0900 Subject: [PATCH] Add: struct fields to the test of issue 256 --- tests/allman/issue0256.d.ref | 4 +++- tests/issue0256.d | 4 +++- tests/otbs/issue0256.d.ref | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/allman/issue0256.d.ref b/tests/allman/issue0256.d.ref index 41c1237..2003daf 100644 --- a/tests/allman/issue0256.d.ref +++ b/tests/allman/issue0256.d.ref @@ -1,4 +1,6 @@ void foo() { - S s = {a: 3}; + S s1 = {a: 3}; + S s2 = {a: 3, b : "test string"}; + S s3 = {a: 3, b : "test string", c : {x: 3.14, y : 3 + 4}}; } diff --git a/tests/issue0256.d b/tests/issue0256.d index 59d78e4..11dccdf 100644 --- a/tests/issue0256.d +++ b/tests/issue0256.d @@ -1,4 +1,6 @@ void foo() { - S s = { a: 3 }; + S s1 = { a: 3 }; + S s2 = { a: 3, b:"test string" }; + S s3 = { a: 3, b:"test string", c: {x: 3.14, y: 3 + 4} }; } diff --git a/tests/otbs/issue0256.d.ref b/tests/otbs/issue0256.d.ref index e5ab49c..ed62ae0 100644 --- a/tests/otbs/issue0256.d.ref +++ b/tests/otbs/issue0256.d.ref @@ -1,3 +1,5 @@ void foo() { - S s = {a: 3}; + S s1 = {a: 3}; + S s2 = {a: 3, b : "test string"}; + S s3 = {a: 3, b : "test string", c : {x: 3.14, y : 3 + 4}}; }