Debian Codegraph @

gcc/testsuite/g++.dg/opt/const7.C

raw
1 // PR c++/104142
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -Wunused-variable }
4 // { dg-options "-msmall-data-limit=0" { target { riscv*-*-* } } }
5
6 struct B { B()=default; };
7 static const B b_var; // { dg-bogus "" }
8 // { dg-final { scan-assembler-symbol-section {b_var} {^\.(const|rodata)|\[RO\]} } }