]> granicus.if.org Git - clang/commitdiff
Add a testcase that we already get right but was not being tested. Found
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 22 Apr 2012 22:31:25 +0000 (22:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 22 Apr 2012 22:31:25 +0000 (22:31 +0000)
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

test/CodeGenCXX/visibility.cpp

index 27923c5f8ab2ed197211c4b869ea71c8ea9f699b..b9ed3730011a86a8c6adeabb1493e6efd44e94ed 100644 (file)
@@ -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<class T>
+  void bar() {}
+  template DEFAULT void bar<foo>();
+  // CHECK: define weak_odr void @_ZN6test343barINS_3fooEEEvv
+  // CHECK-HIDDEN: define weak_odr void @_ZN6test343barINS_3fooEEEvv
+}