We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Beta
2.11
Submitted code is assembled with nasm -f elf64.
nasm -f elf64
Criterion
section .text global add add: ; int add(int a, int b) mov rax, rdi ; result = a add rax, rsi ; result += b ret ; return result
#include <criterion/criterion.h> int add(int, int); Test(add_test, should_add_integers) { cr_assert_eq(add(1, 1), 2); }
12 seconds
None
content-issues