blob: 2c62b60b1100b88b3d329cf185e0ec4db7617366 [file] [log] [blame]
Nico Weberc956b6e2010-09-27 21:02:09 +00001// RUN: %clang_cc1 -fvisibility hidden -emit-llvm -o - %s | FileCheck %s
2
3// Verify that symbols are hidden.
John McCall99ace162011-04-12 01:46:54 +00004// CHECK: @_ZN1CIiE5Inner6Inner26StaticE = weak_odr hidden global
Nico Weberc956b6e2010-09-27 21:02:09 +00005// CHECK: define weak_odr hidden void @_ZN1CIiE5Inner1fEv
6// CHECK: define weak_odr hidden void @_ZN1CIiE5Inner6Inner21gEv
7
8template<typename T>
9struct C {
10 struct Inner {
11 void f();
12 struct Inner2 {
13 void g();
14 static int Static;
15 };
16 };
17};
18
19template<typename T> void C<T>::Inner::f() { }
20template<typename T> void C<T>::Inner::Inner2::g() { }
21template<typename T> int C<T>::Inner::Inner2::Static;
22
23extern template struct C<int>;
24template struct C<int>;