Skip to content

Commit

Permalink
Issue 12929 - Empty union followed by field causes ICE due to offset …
Browse files Browse the repository at this point in the history
…of 0(Tests Only)
  • Loading branch information
JinShil committed Nov 24, 2017
1 parent 497614f commit 1549c13
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/runnable/xtest46.d
Expand Up @@ -7282,6 +7282,21 @@ void test12900()
return;
}

/***************************************************/
// https://issues.dlang.org/show_bug.cgi?id=12929

struct Foo12929
{
union { }
int var;
}

struct Bar12929
{
struct { }
int var;
}

/***************************************************/
// 12937

Expand Down

0 comments on commit 1549c13

Please sign in to comment.