From a28bf63d9a248a6624fa35e459e9dd8087d0ac89 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 25 May 2012 15:51:26 +0000 Subject: Consider the linkage for member class templates even when we have to ignore the visibility. llvm-svn: 157475 --- clang/test/CodeGenCXX/visibility.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'clang/test/CodeGenCXX') diff --git a/clang/test/CodeGenCXX/visibility.cpp b/clang/test/CodeGenCXX/visibility.cpp index d8896843148..17ba33dabe8 100644 --- a/clang/test/CodeGenCXX/visibility.cpp +++ b/clang/test/CodeGenCXX/visibility.cpp @@ -832,3 +832,20 @@ namespace test44 { // CHECK: define internal void @_ZN6test443fooINS_12_GLOBAL__N_13barEEC1Ev // CHECK-HIDDEN: define internal void @_ZN6test443fooINS_12_GLOBAL__N_13barEEC1Ev } + +namespace test45 { + template + struct foo { + template + struct bar { + bar() {}; + }; + }; + namespace { + struct zed; + } + template struct DEFAULT foo::bar; + foo::bar x; + // CHECK: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev + // CHECK-HIDDEN: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev +} -- cgit v1.2.3