summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-prefix-map-lambda.cpp
blob: f0fb1a312c8be46127d1e0fa2a65b0129bf4ef80 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \
// RUN:   -fdebug-prefix-map=%S=/SOURCE_ROOT %s -emit-llvm -o - | FileCheck %s

template <typename T> void b(T) {}
void c() {
  // CHECK: !DISubprogram(name: "b<(lambda at
  // CHECK-SAME:          SOURCE_ROOT
  // CHECK-SAME:          [[@LINE+1]]:{{[0-9]+}})>"
  b([]{});
}