Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / opt / const5.C
blob3785271a08305837b7ea388f019f620774ddf00e
1 // We don't have a good way of determining how ".rodata" is spelled on
2 // all targets, so we limit this test to a few common targets where we
3 // do know the spelling.
4 // { dg-do compile { target i?86-*-linux* x86_64-*-linux* } }
5 // { dg-final { scan-assembler "\\.rodata" } }
7 template <typename T>
8 struct B {
9   int i;
12 // This declaration should be placed in .rodata.
13 const B<int> const_B __attribute__((used)) = { 3 };