summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/datasec1.C
blob: c6b2ae9815c7a5160d9eb055f77277333bfa26f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR target/33168
// { dg-do compile }
// { dg-require-effective-target named_sections }
// { dg-options "-O2 -fdata-sections" }

extern const int& foo;
namespace
{
  const int bar = 16;
}
const int &foo = bar;