Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/explicit-constructor.C

raw
1 // Contributed by Dodji Seketeli <[email protected]>
2 // Origin: PR c++
3 // { dg-do compile }
4 // { dg-options "-O -gdwarf-2 -dA -gno-strict-dwarf -fno-debug-types-section" }
5 // { dg-final { scan-assembler-times "DW_AT_explicit" 2 } }
6
7 struct Foo
8 {
9 Foo () {}
10 explicit Foo (int) {}
11 Foo (char) {}
12 ~Foo () {};
13 };
14
15 void
16 bar ()
17 {
18 Foo foo;
19 }