Update test_static

This commit is contained in:
Shockwave 2023-10-29 16:26:01 +08:00
parent d07e3a9e25
commit 86fb9a6cf9
1 changed files with 8 additions and 1 deletions

View File

@ -34,7 +34,14 @@ int main(int argc, char **argv) {
// test(); // test();
// test2(); // test2();
// test2(); // test2();
// addr of p: 0x5619048df2d0, addr of q: 0x7fb51f2e19e0 /**
* TODO: malloc
* Output on linux64 compiled by clang
* addr of p: 0x5619048df2d0, addr of q: 0x7fb51f2e19e0
* Output on win64 compiled by MinGW64 gcc
* addr of p: 000000B0591FFB20, addr of q: 000000B0591FFB00
*/
printf("addr of p: %p, addr of q: %p\n", p, *q); printf("addr of p: %p, addr of q: %p\n", p, *q);
free(q); free(q);
return 0;
} }