Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Aug 28, 2014
1 parent d040ceb commit 662cd0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ static Type *julia_struct_to_llvm(jl_value_t *jt)
lty = jl_pvalue_llvmt;
else
lty = ty==(jl_value_t*)jl_bool_type ? T_int8 : julia_type_to_llvm(ty);
if (lty == T_void || lty->isEmptyTy())
continue;
latypes.push_back(lty);
}
structdecl->setBody(latypes);
Expand Down
10 changes: 10 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1829,3 +1829,13 @@ end

# issue #7582
aₜ = "a variable using Unicode 6"

immutable My8156{A, B}
a::A
b::B
end
let m = My8156(nothing, 1)
@test sizeof(m) == sizeof(1)
@test m.a === nothing
@test m.b === 1
end

0 comments on commit 662cd0a

Please sign in to comment.