gcc/testsuite/g++.dg/debug/dwarf2/anonname1.C
raw| 1 | // PR debug/41828 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-options "-gdwarf-2 -dA" } |
| 4 | // { dg-final { scan-assembler-not "<anonymous" } } |
| 5 | // { dg-final { scan-assembler-not "\\._\[0-9\]" } } |
| 6 | // { dg-final { scan-assembler-not "\$_\[0-9\]" } } |
| 7 | // { dg-final { scan-assembler-not "__anon_" } } |
| 8 | |
| 9 | struct |
| 10 | { |
| 11 | union |
| 12 | { |
| 13 | struct |
| 14 | { |
| 15 | enum { a, b, c } x; |
| 16 | } s; |
| 17 | }; |
| 18 | } x; |