summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/explicit-constructor.C
blob: 32d205d207fb4c8900e2244d05a2c9b1c10e56e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++
// { dg-do compile }
// { dg-options "-O -g -dA -gno-strict-dwarf" }
// { dg-final { scan-assembler-times "DW_AT_explicit" 2 } }

struct Foo
{
  Foo () {}
  explicit Foo (int) {}
  Foo (char) {}
  ~Foo () {};
};

void
bar ()
{
  Foo foo;
}