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; }