aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/visibility.cpp
blob: 434b3c06c1c5350b4f9016c2d0d8fd10ddf5a2d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only %s

namespace test1 {
  template <class C>
  struct C2
  {
    static int p __attribute__((visibility("hidden")));
  };
  int f() {
    return C2<int>::p;
  }
}