From: Rafael Espindola Date: Sun, 22 Apr 2012 22:31:25 +0000 (+0000) Subject: Add a testcase that we already get right but was not being tested. Found X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5416bd3caae812563eea12b3b2e21da9c5b5904;p=clang Add a testcase that we already get right but was not being tested. Found by a chrome build on OS X. Thanks to Nico Weber for testing a patch and providing the .ii file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155326 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/visibility.cpp b/test/CodeGenCXX/visibility.cpp index 27923c5f8a..b9ed373001 100644 --- a/test/CodeGenCXX/visibility.cpp +++ b/test/CodeGenCXX/visibility.cpp @@ -672,3 +672,13 @@ namespace test33 { // CHECK: define weak_odr void @_ZN6test333fooINS_3zedEE3barEv // CHECK-HIDDEN: define weak_odr void @_ZN6test333fooINS_3zedEE3barEv } + +namespace test34 { + struct foo { + }; + template + void bar() {} + template DEFAULT void bar(); + // CHECK: define weak_odr void @_ZN6test343barINS_3fooEEEvv + // CHECK-HIDDEN: define weak_odr void @_ZN6test343barINS_3fooEEEvv +}