From 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:04:05 +0000 Subject: Vendor import of clang trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/cfe/trunk@351319 --- test/CodeGenCXX/debug-prefix-map-lambda.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CodeGenCXX/debug-prefix-map-lambda.cpp (limited to 'test/CodeGenCXX/debug-prefix-map-lambda.cpp') diff --git a/test/CodeGenCXX/debug-prefix-map-lambda.cpp b/test/CodeGenCXX/debug-prefix-map-lambda.cpp new file mode 100644 index 0000000000000..f0fb1a312c8be --- /dev/null +++ b/test/CodeGenCXX/debug-prefix-map-lambda.cpp @@ -0,0 +1,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 void b(T) {} +void c() { + // CHECK: !DISubprogram(name: "b<(lambda at + // CHECK-SAME: SOURCE_ROOT + // CHECK-SAME: [[@LINE+1]]:{{[0-9]+}})>" + b([]{}); +} -- cgit v1.2.3