diff mbox series

[committed] Add testcase for already fixed PR debug/85550

Message ID 20181130205811.GI12380@tucnak
State New
Headers show
Series [committed] Add testcase for already fixed PR debug/85550 | expand

Commit Message

Jakub Jelinek Nov. 30, 2018, 8:58 p.m. UTC
Hi!

The following testcase has been fixed by Nathan with r266158
aka PR debug/88006 and PR debug/87462.  In order to close the PR, I've
tested following testcase on x86_64-linux and i686-linux and committed to
trunk.

2018-11-30  Jakub Jelinek  <jakub@redhat.com>

	PR debug/85550
	* g++.dg/debug/dwarf2/pr85550.C: New test.


	Jakub
diff mbox series

Patch

--- gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C.jj	2018-11-30 17:32:55.959892418 +0100
+++ gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C	2018-11-30 17:33:46.842056407 +0100
@@ -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 <int (A::*foo)() const>
+struct B {
+};
+
+B<&A::bar> b;
+
+int
+main ()
+{
+}