From 340941dc16c83752975d713910fa1c42f95595ca Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 25 May 2012 16:41:35 +0000 Subject: Don't ignore linkage when ignoring visibility in the instantiation of a function template. llvm-svn: 157480 --- clang/test/CodeGenCXX/visibility.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'clang/test/CodeGenCXX/visibility.cpp') diff --git a/clang/test/CodeGenCXX/visibility.cpp b/clang/test/CodeGenCXX/visibility.cpp index 17ba33dabe8..20359a441dd 100644 --- a/clang/test/CodeGenCXX/visibility.cpp +++ b/clang/test/CodeGenCXX/visibility.cpp @@ -849,3 +849,18 @@ namespace test45 { // CHECK: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev // CHECK-HIDDEN: define internal void @_ZN6test453fooIiE3barINS_12_GLOBAL__N_13zedEEC1Ev } + +namespace test46 { + template + void foo() { + } + namespace { + struct bar; + } + template DEFAULT void foo(); + void zed() { + foo(); + } + // CHECK: define internal void @_ZN6test463fooINS_12_GLOBAL__N_13barEEEvv + // CHECK-HIDDEN: define internal void @_ZN6test463fooINS_12_GLOBAL__N_13barEEEvv +} -- cgit v1.2.3