Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/pr101378.C

raw
1 // PR debug/101378
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-gdwarf-5 -dA" }
4 // { dg-final { scan-assembler-times "0\[^0-9x\\r\\n\]* DW_AT_data_member_location" 1 } }
5 // { dg-final { scan-assembler-times "1\[^0-9x\\r\\n\]* DW_AT_data_member_location" 1 } }
6 // { dg-final { scan-assembler-times "2\[^0-9x\\r\\n\]* DW_AT_data_member_location" 1 } }
7 // { dg-final { scan-assembler-not "-1\[^0-9x\\r\\n\]* DW_AT_data_member_location" } }
8
9 struct E {};
10 struct S
11 {
12 [[no_unique_address]] E e, f, g;
13 } s;