|
@@ -330,7 +330,7 @@ static struct test tests[] = {
|
|
|
" setcontext(&b);\n"
|
|
" setcontext(&b);\n"
|
|
|
" x |= 4;\n"
|
|
" x |= 4;\n"
|
|
|
"}\n"
|
|
"}\n"
|
|
|
- "int main(int argc, char *argv[]) {\n"
|
|
|
|
|
|
|
+ "int main(void) {\n"
|
|
|
" x |= 1;\n"
|
|
" x |= 1;\n"
|
|
|
" getcontext(&a);\n"
|
|
" getcontext(&a);\n"
|
|
|
" a.uc_stack.ss_sp = stack;\n"
|
|
" a.uc_stack.ss_sp = stack;\n"
|
|
@@ -354,7 +354,7 @@ static struct test tests[] = {
|
|
|
" worked = 1;\n"
|
|
" worked = 1;\n"
|
|
|
" setcontext(&b);\n"
|
|
" setcontext(&b);\n"
|
|
|
"}\n"
|
|
"}\n"
|
|
|
- "int main(int argc, char *argv[]) {\n"
|
|
|
|
|
|
|
+ "int main(void) {\n"
|
|
|
" void *ap = &worked;\n"
|
|
" void *ap = &worked;\n"
|
|
|
" void *aq = (void *)(~((ptrdiff_t)ap));\n"
|
|
" void *aq = (void *)(~((ptrdiff_t)ap));\n"
|
|
|
" getcontext(&a);\n"
|
|
" getcontext(&a);\n"
|