Skip to content

Commit c2cac7e

Browse files
committed
[profile] Move test into Posix
Fix Windows after #102940
1 parent f9ad249 commit c2cac7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler-rt/test/profile/instrprof-fork.c renamed to compiler-rt/test/profile/Posix/instrprof-fork.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
__attribute__((noinline)) void func1() {}
1616
__attribute__((noinline)) void func2() {}
1717

18-
int main(void) { // child | parent
18+
int main(void) {
19+
// child | parent
1920
int status; // func1 func2 | func1 func2
2021
func1(); // +1 | +1 (*)
2122
pid_t pid = fork(); // |
@@ -27,4 +28,5 @@ int main(void) { // child | parent
2728
if (pid) // ------------+------------
2829
wait(&status); // 2 1 | 2 0
2930
return 0; // (*) the child inherits counter values prior to fork
30-
} // from the parent in non-continuous mode.
31+
// from the parent in non-continuous mode.
32+
}

0 commit comments

Comments
 (0)