mirror of
https://github.com/frida/tinycc
synced 2024-12-27 23:29:40 +03:00
2bd0daabbe
- tccgen: error out for cast to void, as in void foo(void) { return 1; } This avoids an assertion failure in x86_64-gen.c, also. also fix tests2/03_struct.c accordingly - Error: "memory full" - be more specific - Makefiles: remove circular dependencies, lookup tcctest.c from VPATH - tcc.h: cleanup lib, include, crt and libgcc search paths" avoid duplication or trailing slashes with no CONFIG_MULTIARCHDIR (as from9382d6f1a0
) - tcc.h: remove ";{B}" from PE search path ince5e12c2f9
James Lyon wrote: "... I'm not sure this is the right way to fix this problem." And the answer is: No, please. (copying libtcc1.a for tests instead) - win32/build_tcc.bat: do not move away a versioned file
32 lines
507 B
C
32 lines
507 B
C
#include <stdio.h>
|
|
|
|
struct fred
|
|
{
|
|
int boris;
|
|
int natasha;
|
|
};
|
|
|
|
int main()
|
|
{
|
|
struct fred bloggs;
|
|
|
|
bloggs.boris = 12;
|
|
bloggs.natasha = 34;
|
|
|
|
printf("%d\n", bloggs.boris);
|
|
printf("%d\n", bloggs.natasha);
|
|
|
|
struct fred jones[2];
|
|
jones[0].boris = 12;
|
|
jones[0].natasha = 34;
|
|
jones[1].boris = 56;
|
|
jones[1].natasha = 78;
|
|
|
|
printf("%d\n", jones[0].boris);
|
|
printf("%d\n", jones[0].natasha);
|
|
printf("%d\n", jones[1].boris);
|
|
printf("%d\n", jones[1].natasha);
|
|
|
|
return 0;
|
|
}
|