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* i?86-*-gnu* x86_64-*-linux* } } 5 // { dg-final { scan-assembler "\\.rodata" } } 6 7 template <typename T> 8 struct B { 9 int i; 10 }; 11 12 // This declaration should be placed in .rodata. 13 const B<int> const_B __attribute__((used)) = { 3 }; 14