From 7f138811cd27f5835e7781d3f1cf0797b26af9b9 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 9 Dec 2014 22:04:13 +0000 Subject: DebugInfo: Correct the location of initializations of auto. llvm-svn: 223839 --- clang/test/CodeGenCXX/debug-info-line.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang/test/CodeGenCXX/debug-info-line.cpp') diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/CodeGenCXX/debug-info-line.cpp index f87a24c5b3d..8bf30e4853a 100644 --- a/clang/test/CodeGenCXX/debug-info-line.cpp +++ b/clang/test/CodeGenCXX/debug-info-line.cpp @@ -50,9 +50,17 @@ void f3() { complex_sink() += complex_src(); } +// CHECK-LABEL: define +void f4() { +#line 500 + auto x // CHECK: store {{.*}} !dbg [[DBG_F4:!.*]] + = src(); +} + // CHECK: [[DBG_F1]] = metadata !{i32 100, // CHECK: [[DBG_FOO_VALUE]] = metadata !{i32 200, // CHECK: [[DBG_FOO_REF]] = metadata !{i32 202, // CHECK: [[DBG_FOO_COMPLEX]] = metadata !{i32 204, // CHECK: [[DBG_F2]] = metadata !{i32 300, // CHECK: [[DBG_F3]] = metadata !{i32 400, +// CHECK: [[DBG_F4]] = metadata !{i32 500, -- cgit v1.2.3