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

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

/* { dg-do assemble } */
/* This testcase requires entries in the debug_range section in DWARF which
   refer to a vague linkage function.  */

struct s
{
  ~s ();
};

bool f1 ();
s f2 (s);

template<int x> void
f3(const s & a)
{
  while (f1 () && f1 ())
    {
      s c = f2(a);
    }
}

int main()
{
   f3<0>(s ());
   return 0;
}