2017-04-20 22:56:12 -07:00
|
|
|
#include <assert.h>
|
2015-11-30 18:58:53 -08:00
|
|
|
|
2020-03-20 15:33:36 -07:00
|
|
|
// TODO we would like to #include "mathtest.h" here but this feature has been disabled in
|
|
|
|
// the stage1 compiler. Users will have to wait until self-hosted is available for
|
|
|
|
// the "generate .h file" feature.
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
int32_t add(int32_t a, int32_t b);
|
|
|
|
|
2015-11-30 18:58:53 -08:00
|
|
|
int main(int argc, char **argv) {
|
2017-04-20 22:56:12 -07:00
|
|
|
assert(add(42, 1337) == 1379);
|
2015-11-30 18:58:53 -08:00
|
|
|
return 0;
|
|
|
|
}
|