Skip to content

Commit

Permalink
Merge pull request #9285 from ibuclaw/fail18057b
Browse files Browse the repository at this point in the history
testsuite: Add another test for issue 18057
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
  • Loading branch information
dlang-bot authored Jan 23, 2019
2 parents ba961d6 + 8d6d1ea commit de0782f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/fail_compilation/fail18057b.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
TEST_OUTPUT:
---
fail_compilation/fail18057b.d(12): Error: variable `fail18057b.Recursive.field` recursive initialization of field
---
*/

// https://issues.dlang.org/show_bug.cgi?id=18057
// Recursive field initializer causes segfault.
struct Recursive
{
int field = Recursive();
}

0 comments on commit de0782f

Please sign in to comment.