diff options
author | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | c72c57c9e9b69944e3e009cd5e209634839581d3 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/CodeGenCXX/vtable-available-externally.cpp | |
parent | 5b20025c30d23d521e12c1f33ec8fa6b821952cd (diff) | |
download | FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.zip FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.tar.gz |
Vendor import of clang trunk r178860:
http://llvm.org/svn/llvm-project/cfe/trunk@178860
Diffstat (limited to 'test/CodeGenCXX/vtable-available-externally.cpp')
-rw-r--r-- | test/CodeGenCXX/vtable-available-externally.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/CodeGenCXX/vtable-available-externally.cpp b/test/CodeGenCXX/vtable-available-externally.cpp index 23baac9..693b36a 100644 --- a/test/CodeGenCXX/vtable-available-externally.cpp +++ b/test/CodeGenCXX/vtable-available-externally.cpp @@ -6,13 +6,14 @@ #include <typeinfo> -// Test1::A's key function (f) is not defined in this translation unit, but in -// order to devirtualize calls, we emit the class related data with +// Test1::A's key function (f) is not defined in this translation +// unit, but in order to devirtualize calls, we emit the v-table with // available_externally linkage. +// +// There's no real reason to do this to the RTTI, though. // CHECK-TEST1: @_ZTVN5Test11AE = available_externally -// CHECK-TEST1: @_ZTSN5Test11AE = available_externally -// CHECK-TEST1: @_ZTIN5Test11AE = available_externally +// CHECK-TEST1: @_ZTIN5Test11AE = external constant i8* namespace Test1 { struct A { |