diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-04-03 04:26:42 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-04-03 04:26:42 +0000 |
| commit | 35d646133ba70e5d44bc2d112ffd5e2ca262dbee (patch) | |
| tree | 3fe23de613cf6e946c431c880ea22862434bc0c0 /test/CodeGenCXX/vtable-linkage.cpp | |
| parent | eea12d17ec3527f4f9474571fd3011f3d825c45a (diff) | |
| download | clang-35d646133ba70e5d44bc2d112ffd5e2ca262dbee.tar.gz clang-35d646133ba70e5d44bc2d112ffd5e2ca262dbee.tar.bz2 clang-35d646133ba70e5d44bc2d112ffd5e2ca262dbee.tar.xz | |
Don't produce a vtable for a class if we have an explicit template instantiation declaration and no key function. We will produce the vtable at the explicit template instantiation.
Fixes PR6748
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/vtable-linkage.cpp')
| -rw-r--r-- | test/CodeGenCXX/vtable-linkage.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/CodeGenCXX/vtable-linkage.cpp b/test/CodeGenCXX/vtable-linkage.cpp index a4ea2a19c2..c75efe228d 100644 --- a/test/CodeGenCXX/vtable-linkage.cpp +++ b/test/CodeGenCXX/vtable-linkage.cpp @@ -128,10 +128,8 @@ void use_F(F<char> &fc) { // CHECK: @_ZTI1FIlE = weak_odr constant // F<int> is an explicit template instantiation declaration without a -// key function, so its vtable should have weak_odr linkage. -// CHECK: @_ZTV1FIiE = weak_odr constant -// CHECK: @_ZTS1FIiE = weak_odr constant -// CHECK: @_ZTI1FIiE = weak_odr constant +// key function, so its vtable should have external linkage. +// CHECK: @_ZTV1FIiE = external constant // E<int> is an explicit template instantiation declaration. It has a // key function that is not instantiated, so we should only reference |
