13 lines · c
1// Test that we get the expected module flag metadata for the memory profile2// filename.3// RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NONE4// RUN: %clang -target x86_64-linux-gnu -fmemory-profile -S -emit-llvm -o - %s | FileCheck %s --check-prefix=DEFAULTNAME5// RUN: %clang -target x86_64-linux-gnu -fmemory-profile=/tmp -S -emit-llvm -o - %s | FileCheck %s --check-prefix=CUSTOMNAME6int main(void) {7 return 0;8}9 10// NONE-NOT: MemProfProfileFilename11// DEFAULTNAME: !{i32 1, !"MemProfProfileFilename", !"memprof.profraw"}12// CUSTOMNAME: !{i32 1, !"MemProfProfileFilename", !"/tmp{{.*}}memprof.profraw"}13