mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
[MIGRATED] [PATCH] still not sure about how to make a proper stack frame, but
NOTE: auto-magically re-imported by HAL 9000
HASH: 2961d9e239
(original)
This commit is contained in:
23
docs/chk/chk.cpp
Normal file
23
docs/chk/chk.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void __attribute__((noinline)) func1(int arg1) {
|
||||
int stuff1 = 3,stuff4 = 4;
|
||||
|
||||
printf("%u/%u/%u\n",stuff1,stuff4,arg1);
|
||||
}
|
||||
|
||||
int main() {
|
||||
int alloc1 = 2,alloc2 = 4;
|
||||
|
||||
printf("%u/%u\n",alloc1,alloc2);
|
||||
|
||||
{
|
||||
int alloc3 = 22,alloc4 = 44;
|
||||
printf("%u/%u\n",alloc3,alloc4);
|
||||
}
|
||||
|
||||
func1(99);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user