Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / debug-info-pseudo-probe.cpp
blobb1b9c8e342a0d89a442eb1b92c8e24edf385a11d
1 // This test checks if a symbol gets mangled dwarf names with -fpseudo-probe-for-profiling option.
2 // RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -o - < %s | FileCheck %s --check-prefix=PLAIN
3 // RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -fpseudo-probe-for-profiling -o - < %s | FileCheck %s --check-prefix=MANGLE
5 int foo() {
6 return 0;
9 // PLAIN: define dso_local noundef i32 @_Z3foov()
10 // PLAIN: distinct !DISubprogram(name: "foo", scope:
11 // MANGLE: define dso_local noundef i32 @_Z3foov()
12 // MANGLE: distinct !DISubprogram(name: "foo", linkageName: "_Z3foov"