summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/const7.C
blob: 5bcf94897a867a0eb855f50c0dc39ff192d61313 (plain)
1
2
3
4
5
6
7
// PR c++/104142
// { dg-do compile { target c++11 } }
// { dg-additional-options -Wunused-variable }

struct B { B()=default; };
static const B b_var;		//  { dg-bogus "" }
// { dg-final { scan-assembler-symbol-section {b_var} {^\.(const|rodata)|\[RO\]} } }