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.

llvm-svn: 155326
This commit is contained in:
Rafael Espindola 2012-04-22 22:31:25 +00:00
parent bf7d5666f0
commit cba4879534
1 changed files with 10 additions and 0 deletions

View 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
}