zdevito/terra — pull request #34 by kivikakk (2013-07-19 11:14:52+00:00)
Title: Add a failing test for passing empty structs.

A function that takes an struct without any contents—whether anonymous or named—will cause the compile to assert out if referred:

```$ ../terra structempty.t
terra: src/tcompiler.cpp:562: llvm::Type *CCallingConv::TypeForClass(size_t, CCallingConv::RegisterClass): Assertion `!"unexpected class"' failed.
[1] 22805 abort (core dumped) ../terra structempty.t
$ ```