Skip to content

Commit

Permalink
Merge pull request #4538 from denis-sh/fixup-pull-4537
Browse files Browse the repository at this point in the history
Fixup pull 4537
  • Loading branch information
9rnsr committed Apr 1, 2015
2 parents 2322240 + 302d421 commit b17de5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/compilable/testfwdref.d
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ class E12984a(T) : D12984a!int
}
}

static assert("B.instanceSize = ", __traits(classInstanceSize, B12984a) == (void*).sizeof * 2);
static assert("C.instanceSize = ", __traits(classInstanceSize, C12984a) == (void*).sizeof * 2);
static assert(__traits(classInstanceSize, B12984a) == (void*).sizeof * 2);
static assert(__traits(classInstanceSize, C12984a) == (void*).sizeof * 2);

// ----

Expand All @@ -324,8 +324,8 @@ class E12984b(T) : D12984b!int
}
}

static assert("B.instanceSize = ", __traits(classInstanceSize, B12984b) == (void*).sizeof * 2 + (int).sizeof);
static assert("C.instanceSize = ", __traits(classInstanceSize, C12984b) == (void*).sizeof * 2 + (int).sizeof);
static assert(__traits(classInstanceSize, B12984b) == (void*).sizeof * 2 + int.sizeof);
static assert(__traits(classInstanceSize, C12984b) == (void*).sizeof * 2 + int.sizeof * 2);

/***************************************************/
// 13860
Expand Down

0 comments on commit b17de5d

Please sign in to comment.