[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / template-inner-struct-visibility-hidden.cpp
blob4635ec49c3a2c2778763bba8131b414f0ffa6a47
1 // RUN: %clang_cc1 -fvisibility=hidden -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
3 // Verify that symbols are hidden.
4 // CHECK: @_ZN1CIiE5Inner6Inner26StaticE = weak_odr hidden global
5 // CHECK-LABEL: define weak_odr hidden {{.*}}void @_ZN1CIiE5Inner1fEv
6 // CHECK-LABEL: define weak_odr hidden {{.*}}void @_ZN1CIiE5Inner6Inner21gEv
8 template<typename T>
9 struct C {
10 struct Inner {
11 void f();
12 struct Inner2 {
13 void g();
14 static int Static;
19 template<typename T> void C<T>::Inner::f() { }
20 template<typename T> void C<T>::Inner::Inner2::g() { }
21 template<typename T> int C<T>::Inner::Inner2::Static;
23 extern template struct C<int>;
24 template struct C<int>;