aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/debug/debug9.C
blob: aa328ee6f79abe7ead17bd06fb1a793f91d68aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { 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;
}