[cfe-commits] r155326 - /cfe/trunk/test/CodeGenCXX/visibility.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sun Apr 22 15:31:25 PDT 2012
Author: rafael
Date: Sun Apr 22 17:31:25 2012
New Revision: 155326
URL: http://llvm.org/viewvc/llvm-project?rev=155326&view=rev
Log:
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.
Modified:
cfe/trunk/test/CodeGenCXX/visibility.cpp
Modified: cfe/trunk/test/CodeGenCXX/visibility.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/visibility.cpp?rev=155326&r1=155325&r2=155326&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/visibility.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/visibility.cpp Sun Apr 22 17:31:25 2012
@@ -672,3 +672,13 @@
// 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
+}
More information about the cfe-commits
mailing list