Skip to content

Commit 8f7dc99

Browse files
committed
[test/profile] Pass -w to suppress suggestion to use fopen_s
1 parent ea7f211 commit 8f7dc99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler-rt/test/profile/instrprof-write-buffer-internal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -f %t.buf.profraw %t.profraw
2-
// RUN: %clang_profgen -o %t %s
2+
// RUN: %clang_profgen -w -o %t %s
33
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t %t.buf.profraw
44
// RUN: llvm-profdata show %t.buf.profraw | FileCheck %s -check-prefix=WRITE-BUFFER
55
// RUN: not llvm-profdata show %t.profraw 2>&1 | FileCheck %s -check-prefix=ALREADY-DUMPED
@@ -43,9 +43,9 @@ int main(int argc, const char *argv[]) {
4343

4444
char *buf = malloc(bufsize);
4545
int ret = __llvm_profile_write_buffer_internal(buf,
46-
__llvm_profile_begin_data(), __llvm_profile_end_data(),
47-
__llvm_profile_begin_counters(), __llvm_profile_end_counters(),
48-
__llvm_profile_begin_names(), __llvm_profile_end_names());
46+
__llvm_profile_begin_data(), __llvm_profile_end_data(),
47+
__llvm_profile_begin_counters(), __llvm_profile_end_counters(),
48+
__llvm_profile_begin_names(), __llvm_profile_end_names());
4949

5050
if (ret != 0) {
5151
fprintf(stderr, "failed to write buffer");

0 commit comments

Comments
 (0)