mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Format code automatically for regression tests
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
60cd65d837
commit
82de200d03
@ -3,14 +3,15 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main() {
|
||||
printf("before fork\n");
|
||||
fflush(stdout);
|
||||
if(fork() == 0) {
|
||||
printf("after fork: Hello from child\n");
|
||||
} else {
|
||||
printf("after fork: Hello from parent\n");
|
||||
}
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
int main()
|
||||
{
|
||||
printf("before fork\n");
|
||||
fflush(stdout);
|
||||
if (fork() == 0) {
|
||||
printf("after fork: Hello from child\n");
|
||||
} else {
|
||||
printf("after fork: Hello from parent\n");
|
||||
}
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user