diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-02-09 18:47:14 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-02-09 18:47:14 +0000 |
commit | 2221aba85b57297538510708e02ee217a2656baf (patch) | |
tree | 7ccbc5e41c5eb96575b0fe4490af233e01d131ea /clang/test/CodeGenCXX/debug-info-line.cpp | |
parent | d7e042a2acc606f1d8d7e21f3eeb1676f9da7806 (diff) | |
download | bcm5719-llvm-2221aba85b57297538510708e02ee217a2656baf.tar.gz bcm5719-llvm-2221aba85b57297538510708e02ee217a2656baf.zip |
DebugInfo: Suppress the location of instructions in aggregate default arguments.
Matches the existing code for scalar default arguments. Complex default
arguments probably need the same handling too (test/fix to that coming
next).
llvm-svn: 228588
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-line.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-line.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/CodeGenCXX/debug-info-line.cpp index f6ce53e2e32..4a06145f502 100644 --- a/clang/test/CodeGenCXX/debug-info-line.cpp +++ b/clang/test/CodeGenCXX/debug-info-line.cpp @@ -274,6 +274,17 @@ void f22() { } } +// CHECK-LABEL: define +struct f23_struct { +}; +f23_struct f23_a(); +void f23_b(f23_struct = f23_a()); +void f23() { +// CHECK: call {{.*}}f23_a{{.*}}, !dbg [[DBG_F23:![0-9]*]] +#line 2500 + f23_b(); +} + // CHECK: [[DBG_F1]] = !MDLocation(line: 100, // CHECK: [[DBG_FOO_VALUE]] = !MDLocation(line: 200, // CHECK: [[DBG_FOO_REF]] = !MDLocation(line: 202, @@ -302,3 +313,4 @@ void f22() { // CHECK: [[DBG_F19_1]] = !MDLocation(line: 2100, // CHECK: [[DBG_F19_2]] = !MDLocation(line: 2101, // CHECK: [[DBG_F20_1]] = !MDLocation(line: 2200, +// CHECK: [[DBG_F23]] = !MDLocation(line: 2500, |