summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/anon2.C
blob: 7abdd0505182e2009baecd477a3fb0ecca1fd1b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test for propagation of anonymous namespace internal linkage

// { dg-do compile }
// { dg-final { scan-assembler-not "globl.*_Z1fv" { xfail *-*-aix* } } }
// { dg-require-visibility "" }

namespace
{
  struct A { };
}

A f () { return A(); }