1 ; Test to ensure that the filename provided by clang in the module flags
2 ; metadata results in the expected __memprof_profile_filename insertion.
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux -passes='function(memprof),memprof-module' -S | FileCheck --check-prefixes=CHECK %s
11 !llvm.module.flags = !{!0}
12 !0 = !{i32 1, !"MemProfProfileFilename", !"/tmp/memprof.profraw"}
14 ; CHECK: $__memprof_profile_filename = comdat any
15 ; CHECK: @__memprof_profile_filename = constant [21 x i8] c"/tmp/memprof.profraw\00", comdat