mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 05:36:05 +00:00

Fix failure in new test from 0949f96dc6521be80ebb8ebc1e1c506165c22aac: Don't match exact file path separator. Should fix: http://lab.llvm.org:8011/#/builders/119/builds/437/steps/9/logs/FAIL__Clang__memory-profile-filename_c
13 lines
654 B
C
13 lines
654 B
C
// Test that we get the expected module flag metadata for the memory profile
|
|
// filename.
|
|
// RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NONE
|
|
// RUN: %clang -target x86_64-linux-gnu -fmemory-profile -S -emit-llvm -o - %s | FileCheck %s --check-prefix=DEFAULTNAME
|
|
// RUN: %clang -target x86_64-linux-gnu -fmemory-profile=/tmp -S -emit-llvm -o - %s | FileCheck %s --check-prefix=CUSTOMNAME
|
|
int main(void) {
|
|
return 0;
|
|
}
|
|
|
|
// NONE-NOT: MemProfProfileFilename
|
|
// DEFAULTNAME: !{i32 1, !"MemProfProfileFilename", !"memprof.profraw"}
|
|
// CUSTOMNAME: !{i32 1, !"MemProfProfileFilename", !"/tmp{{.*}}memprof.profraw"}
|