Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / other / datasec1.C
blobc6b2ae9815c7a5160d9eb055f77277333bfa26f6
1 // PR target/33168
2 // { dg-do compile }
3 // { dg-require-effective-target named_sections }
4 // { dg-options "-O2 -fdata-sections" }
6 extern const int& foo;
7 namespace
9   const int bar = 16;
11 const int &foo = bar;