xref: /relibc/tests/assert.c (revision 269b8a1d3ebaa49d99677b1aef609037c16a9145)
1 #include <assert.h>
2 #include <stdlib.h>
3 #include <stdio.h>
4 
5 #include "test_helpers.h"
6 
main(void)7 int main(void) {
8     assert(1 == 1);
9     assert(1 + 1 == 2);
10     puts("yay!");
11 
12     if (assert(0 == 0), 1) {
13         puts("groovy!");
14     }
15 
16     //This fails, but I can't test it because that'd
17     //make the test fail lol
18     //assert(42 == 1337);
19 }
20