From d5b5f5ad904650d992b4acc967c6dd94d1dc4f12 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 30 Nov 2018 21:55:41 +0100 Subject: [PATCH] re PR debug/85550 (-fdebug-types-section broken with DW_OP_addr in DW_AT_location) PR debug/85550 * g++.dg/debug/dwarf2/pr85550.C: New test. From-SVN: r266689 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 68186d8ab83..9ec4164919c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-11-30 Jakub Jelinek + + PR debug/85550 + * g++.dg/debug/dwarf2/pr85550.C: New test. + 2018-11-30 Thomas Schwinge PR c/87924 diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C b/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C new file mode 100644 index 00000000000..72c03b9c7e3 --- /dev/null +++ b/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C @@ -0,0 +1,17 @@ +// PR debug/85550 +// { dg-do link } +// { dg-options "-O2 -g -fdebug-types-section" } + +struct A { + int bar () const { return 0; } +}; +template +struct B { +}; + +B<&A::bar> b; + +int +main () +{ +} -- 2.30.2