xref: /llvm-project/clang/test/SemaCXX/visibility.cpp (revision ef5ea1df4e65d7a885e77ed9b7a643b896de15a2)
1 // RUN: %clang_cc1 -fsyntax-only %s
2 
3 namespace test1 {
4   template <class C>
5   struct C2
6   {
7     static int p __attribute__((visibility("hidden")));
8   };
f()9   int f() {
10     return C2<int>::p;
11   }
12 }
13