blob: b7773dc9d61cb274bb2ad4fad082918bc14a638a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// PR c++/21764
// Test for namespace visibility attribute semantics.
// { dg-require-visibility "" }
// { dg-final { scan-hidden "_ZN3foo1fEv" } }
// { dg-final { scan-hidden "_ZN3foo1gEv" } }
// { dg-final { scan-hidden "_ZN3foo1A1mEv" } }
// { dg-final { scan-hidden "_ZN3foo1tIiEEvv" } }
// { dg-final { scan-not-hidden "_ZN3foo1hEv" } }
namespace foo __attribute ((visibility ("hidden")))
{
int f() { }
void g();
template <typename T> void t() { }
class A
{
void m ();
};
}
namespace foo
{
void h() {}
}
void foo::g() { t<int> (); }
void foo::A::m() { }
|