We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ad249 commit c2cac7eCopy full SHA for c2cac7e
compiler-rt/test/profile/instrprof-fork.c renamed to compiler-rt/test/profile/Posix/instrprof-fork.c
@@ -15,7 +15,8 @@
15
__attribute__((noinline)) void func1() {}
16
__attribute__((noinline)) void func2() {}
17
18
-int main(void) { // child | parent
+int main(void) {
19
+ // child | parent
20
int status; // func1 func2 | func1 func2
21
func1(); // +1 | +1 (*)
22
pid_t pid = fork(); // |
@@ -27,4 +28,5 @@ int main(void) { // child | parent
27
28
if (pid) // ------------+------------
29
wait(&status); // 2 1 | 2 0
30
return 0; // (*) the child inherits counter values prior to fork
-} // from the parent in non-continuous mode.
31
+ // from the parent in non-continuous mode.
32
+}
0 commit comments