view gcc/testsuite/g++.dg/debug/dwarf2/pr85302.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

// PR debug/85302
// { dg-do compile }
// { dg-skip-if "split DWARF unsupported" { *-*-darwin* } }
// { dg-options "-std=c++11 -gsplit-dwarf -O1" }
// { dg-additional-options "-fPIE" { target pie } }

struct A { const char *b; A (const char *c) : b(c) {} };
struct B { void foo (A); };
B e;

void
bar ()
{
  e.foo ("");
}