fixed += bug with non-char pointers
tcc 0.9.25 can't compile musl (or any libc, probably). will probably need to write libc for tcc, then compile gcc or a later version of tcc with it
This commit is contained in:
parent
e94266df3d
commit
c42c5d94b8
4 changed files with 15 additions and 8 deletions
12
05/main.c
12
05/main.c
|
@ -1,6 +1,6 @@
|
|||
/* #define _STDLIB_DEBUG */
|
||||
/* #include <math.h> */
|
||||
/* #include <stdio.h> */
|
||||
#include <stdio.h>
|
||||
/* #include <signal.h> */
|
||||
/* #include <stdlib.h> */
|
||||
/* #include <string.h> */
|
||||
|
@ -9,10 +9,10 @@
|
|||
/* #include <setjmp.h> */
|
||||
/* */
|
||||
|
||||
char *p = "a";
|
||||
char s[] = "hello\0there";
|
||||
|
||||
int _main(int argc, char **argv) {
|
||||
return s;
|
||||
int main(int argc, char **argv) {
|
||||
int *p = 0x100;
|
||||
p += 1;
|
||||
printf("%p\n",p);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue