diff options
Diffstat (limited to 'clang/test/CodeGenCXX/vtable-linkage.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/vtable-linkage.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGenCXX/vtable-linkage.cpp b/clang/test/CodeGenCXX/vtable-linkage.cpp index 733a9f0be53..63e17431c46 100644 --- a/clang/test/CodeGenCXX/vtable-linkage.cpp +++ b/clang/test/CodeGenCXX/vtable-linkage.cpp @@ -121,12 +121,6 @@ void use_F(F<char> &fc) { // CHECK: @_ZTI1EIlE = weak_odr constant // CHECK: @_ZTV1EIlE = weak_odr constant -// The anonymous struct for e has no linkage, so the vtable should have -// internal linkage. -// CHECK: @"_ZTS3$_0" = internal constant -// CHECK: @"_ZTI3$_0" = internal constant -// CHECK: @"_ZTV3$_0" = internal constant - // F<long> is an implicit template instantiation with no key function, // so its vtable should have weak_odr linkage. // CHECK: @_ZTS1FIlE = weak_odr constant @@ -144,6 +138,12 @@ void use_F(F<char> &fc) { // its vtable, not define it. // CHECK: @_ZTV1EIiE = external constant +// The anonymous struct for e has no linkage, so the vtable should have +// internal linkage. +// CHECK: @"_ZTS3$_0" = internal constant +// CHECK: @"_ZTI3$_0" = internal constant +// CHECK: @"_ZTV3$_0" = internal constant + // The A vtable should have internal linkage since it is inside an anonymous // namespace. // CHECK: @_ZTSN12_GLOBAL__N_11AE = internal constant |