summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/anon1.C
blob: 16647b2281456d5d215a28f79999d11d07392c4b (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/21581
// Test for anonymous namespace internal linkage

// { dg-do compile }
// { dg-final { scan-assembler-not "globl.*_ZN.*1fEv" } }

namespace
{
  int f() { }
}