Initial commit
This commit is contained in:
		
							
								
								
									
										12
									
								
								tests/03_arena_softfail.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tests/03_arena_softfail.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| #define DEBUG | ||||
| #include <stdlib.h> | ||||
| #include <stdint.h> | ||||
| #include <assert.h> | ||||
| #include "../include/arena.h" | ||||
| #include "../include/mem.h" | ||||
| int main(void){ | ||||
|     size_t nbytes = MEM_GB(1024); | ||||
|     Arena a = ARENA(SOFT_FAIL, nbytes); | ||||
|     assert(a.beg == NULL); | ||||
|     return EXIT_SUCCESS; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user