summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2017-10-17Fix outdated comment in a test.Kartik Agaram
Outdated since 26fef326df.
2017-09-29Use the right variables to point to the compiler.Ori Bernstein
2017-09-23Remove obsolete assert.Ori Bernstein
2017-09-22Fix trait lookup for nested pointers.Ori Bernstein
2017-08-13If a trait is specialized over a generic, it's generic too.Ori Bernstein
2017-07-29Finally do a by-scope comparison of generic types.Ori Bernstein
This should clear the way for better deduplication.
2017-07-25Fix running tests.Ori Bernstein
2017-07-23Implement waitany() on 9front.Ori Bernstein
2017-07-23Preparing for the new mbld.Ori Bernstein
It's a tad stricter about a couple of things.
2017-07-17Convert from `in` to `:`.Ori Bernstein
The winds of change are a-blowin.
2017-07-08Allow matching of empty structs and arraysS. Gilles
2017-07-03Specialize impl declarations on impl type in addition to decl typeMichael Forney
This allows multiple specializations of a declarations with a concrete type, which can be selected with the new impl expression if it can't be deduced by its type alone. For example trait hasname @t = Name: byte[:] ;; impl hasname void = Name = "somename" ;; impl hasname bool = Name = "othername" ;; const boolname = impl(Name, void) To do this, pass the param type through to genericname and specializedcl. Since we now need the type parameter to look up trait decls, make sure n->expr.param gets the necessary treatment in typesub, specializenode, pickle, and unpickle. We also need to tag the param types for export.
2017-07-03Add impl(type, name) to retrieve a particular implementation of a trait declMichael Forney
This avoids having to create a temporary variable when you know what implementation your want for a generic constant or function with generic return value. Re-use the impl keyword for this expression to avoid invalidating existing programs.
2017-06-30Support union constantsMichael Forney
2017-02-14Add test for array alignment bug.Ori Bernstein
2017-02-04Ucons are now prefix expressions.Ori Bernstein
It's just what it looks like. This cleans up taking the address of union literals.
2016-10-28merge consecutive string literalsandrewc
2016-10-09Fix bug with postinc returns.Ori Bernstein
We were draining the postinc queue before the rval. Oops.
2016-09-23Use the first dot as the suffix.Ori Bernstein
Support for .glue.c; maybe we can do better.
2016-09-11Let's not pollute /env with crud.Ori Bernstein
2016-09-11Don't strip spaces from test output.Ori Bernstein
This was breaking one of the test cases.
2016-09-10Finish fixing rc test runner.Ori Bernstein
2016-09-10We have `mbld test`. Use it, and update runtest.rc to match.Ori Bernstein
2016-08-27Rename `std.Fail to `std.Err.Ori Bernstein
2016-08-21Fix handling of pointers in match.Ori Bernstein
2016-06-21Fix the test.Ori Bernstein
2016-06-08Make the build work on linux dashOri Bernstein
2016-06-08Use a more posix /bin/sh.Ori Bernstein
Remove bashisms.
2016-05-26Fix test scripts.glenda@drat
Some tests are still busted.
2016-05-26Add plan9 implementations of recent additions.glenda@drat
2016-05-25Improve hash functions.Ori Bernstein
2016-05-24Make the subtest runner a bit more resilient.Ori Bernstein
Don't accept nested tests or multiple test exits.
2016-05-24Run myrddin tests as subtests.Ori Bernstein
2016-05-17New syntax for casts.Ori Bernstein
2016-02-27give tests some loveAndrew Chambers
2016-02-25Tweak test to verify nested destructure.Ori Bernstein
2016-02-06fix rval len, fixes #69Andrew Chambers
2016-02-05change slgrow to take a pointerandrewc
2016-01-31Add support for generic impls.Ori Bernstein
You can now implement generic shit like iterators.
2016-01-26Remove the '$' shorthand for end of array.Ori Bernstein
2016-01-24Add pointer match syntax.Ori Bernstein
2016-01-24Add test for big type blobs.Ori Bernstein
2016-01-24Fix recursive types nested inside generics.Ori Bernstein
2016-01-24add test for missing bounds checkAndrew Chambers
2016-01-20fix decl for with no cond and add more testsandrewc
2016-01-19fix #51, loops without cond stmtsandrewc
2016-01-12Fix #36 - Emit Oret arg when return type is voidandrewc
2016-01-09Chariter => bycharOri Bernstein
2015-12-28Fix alignment in argument passing.Ori Bernstein
The alignment of a compound type is equal to the maximum alignment of its members, so your array shouldn't be aligned. When setting up arguments, though, I was accidentally using the size of the type instead of the alignment. Fixes #30
2015-12-24Land char iterators.Ori Bernstein