summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/namespace2.C
blob: 96c5b095324068b6e283f60af883fb46e6391d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/32470

// { dg-require-visibility "" }
// { dg-options "-fvisibility=hidden" }
// { dg-final { scan-hidden "_ZN4Test4testEv" } }

namespace std __attribute__((__visibility__("default"))) {
  template<typename _CharT>
  class basic_streambuf
  {
    friend void getline();
  };
  extern template class basic_streambuf<char>;
}

class Test
{
  void test();
};
void Test::test() { }