diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-03 06:30:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-03 06:30:58 +0000 |
commit | 01de7a44cea9f77cbcda65faad8edc8b48a3b617 (patch) | |
tree | e2c42d9af61c356882440b5fb64907aedc769ef5 /test/CodeGenCXX/vtable-available-externally.cpp | |
parent | 7a17889829b3f3655c47e2b01e282832fdb466d6 (diff) |
Revert 124768.
This reopens PR99114, but that one at least can be avoided with an #include.
PR9130 cannot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/vtable-available-externally.cpp')
-rw-r--r-- | test/CodeGenCXX/vtable-available-externally.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/test/CodeGenCXX/vtable-available-externally.cpp b/test/CodeGenCXX/vtable-available-externally.cpp index 11c1abda4b..b6e48c8f8c 100644 --- a/test/CodeGenCXX/vtable-available-externally.cpp +++ b/test/CodeGenCXX/vtable-available-externally.cpp @@ -53,51 +53,3 @@ namespace Test2 { void A::f() { } } - -// Test that we don't assert on this test. -namespace Test3 { - -struct A { - virtual void f(); - virtual ~A() { } -}; - -struct B : A { - B(); - virtual void f(); -}; - -B::B() { } - -void g(A* a) { - a->f(); -}; - -} - -// PR9114, test that we don't try to emit a definition of -namespace Test4 { - -template <class T> struct RefPtr { - T* p; - ~RefPtr() { - p->deref(); - } -}; - -struct A { - virtual ~A(); -}; - -struct Node; - -struct B : A { - virtual void deref(); - RefPtr<Node> m; -}; - -void f() { - RefPtr<B> b; -} - -} |