Add a Cretonne testing guide.

Describe the basics of Rust-level tests, and go into more detail about
the file-level tests.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-23 09:38:17 -07:00
parent 0dd16a360d
commit 7ec54a5a01
4 changed files with 317 additions and 10 deletions

View File

@@ -48,11 +48,11 @@ fall through to the next EBB without an explicit branch.
A ``.cton`` file consists of a sequence of independent function definitions:
.. productionlist::
function-list : { function }
function : function-spec "{" preamble function-body "}"
function-spec : "function" function-name signature
preamble : { preamble-decl }
function-body : { extended-basic-block }
function_list : { function }
function : function_spec "{" preamble function_body "}"
function_spec : "function" function_name signature
preamble : { preamble_decl }
function_body : { extended_basic_block }
Static single assignment form
-----------------------------