Packages

Just-In-Time nif generator, FFI generator, C-compiler based on TinyCC. For Linux, MacOS, Windows (msys2)

Current section

Files

Jump to
niffler c_src tinycc tests tests2 91_ptr_longlong_arith32.c
Raw

c_src/tinycc/tests/tests2/91_ptr_longlong_arith32.c

int printf(const char *, ...);
char t[] = "012345678";
int main(void)
{
char *data = t;
unsigned long long r = 4;
unsigned a = 5;
unsigned long long b = 12;
*(unsigned*)(data + r) += a - b;
printf("data = \"%s\"\n", data);
return 0;
}