about summary refs log tree commit diff
path: root/src/test/codegen/scalar-function-call.rs
AgeCommit message (Collapse)AuthorLines
2015-05-27Revamp codegen tests to check IR quality instead of quantityBjörn Steinbrink-18/+0
The current codegen tests only compare IR line counts between similar rust and C programs, the latter getting compiled with clang. That looked like a good idea back then, but actually things like lifetime intrinsics mean that less IR isn't always better, so the metric isn't really helpful. Instead, we can start doing tests that check specific aspects of the generated IR, like attributes or metadata. To do that, we can use LLVM's FileCheck tool which has a number of useful features for such tests. To start off, I created some tests for a few things that were recently added and/or broken.
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-1/+1
Now that support has been removed, all lingering use cases are renamed.
2013-10-10Add `pub` to all the codegen testsAlex Crichton-1/+1
Otherwise the test function is internalized and LLVM will most likely optimize it out.
2013-08-17Fix warnings it testsErick Tryzelaar-1/+1
2013-07-31test: add more codegen tests, add copyright headers to all.Graydon Hoare-0/+10
2013-07-16test: new codegen tests, rename hello.Graydon Hoare-0/+8