diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-04-22 22:31:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-04-22 22:31:25 +0000 |
commit | a5416bd3caae812563eea12b3b2e21da9c5b5904 (patch) | |
tree | e78f547581ddbee8790159b4ab80620b5d69c077 | |
parent | 471131a05d4f9dca7f9f4f5109f2a9a4ce80bf65 (diff) |
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
-rw-r--r-- | test/CodeGenCXX/visibility.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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<class T> + void bar() {} + template DEFAULT void bar<foo>(); + // CHECK: define weak_odr void @_ZN6test343barINS_3fooEEEvv + // CHECK-HIDDEN: define weak_odr void @_ZN6test343barINS_3fooEEEvv +} |