diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-04-24 19:40:31 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-04-24 19:40:31 +0000 |
commit | ee8031b773ba5a69dd7f317088c99cc42ffcaf56 (patch) | |
tree | 5d96b2894476a76f0bd045cd850bfaf33d05647b /test/unwind_01.pass.cpp | |
parent | 3943f43a546ed6cdea2ad93fe9a1d162d3529047 (diff) |
libc++abi: remove the duplicated unwind content
The unwinder has been moved into its own project setup at
http://svn.llvm.org/projects/libunwind/trunk. This simply removes the now
duplicated content. This move was previously discussed on llvmdev at [1].
[1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-January/081507.html
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@235759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/unwind_01.pass.cpp')
-rw-r--r-- | test/unwind_01.pass.cpp | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/test/unwind_01.pass.cpp b/test/unwind_01.pass.cpp deleted file mode 100644 index 9d237f8..0000000 --- a/test/unwind_01.pass.cpp +++ /dev/null @@ -1,96 +0,0 @@ -//===------------------------- unwind_01.cpp ------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include <assert.h> - -struct A -{ - static int count; - int id_; - A() : id_(++count) {} - ~A() {assert(id_ == count--);} - -private: - A(const A&); - A& operator=(const A&); -}; - -int A::count = 0; - -struct B -{ - static int count; - int id_; - B() : id_(++count) {} - ~B() {assert(id_ == count--);} - -private: - B(const B&); - B& operator=(const B&); -}; - -int B::count = 0; - -struct C -{ - static int count; - int id_; - C() : id_(++count) {} - ~C() {assert(id_ == count--);} - -private: - C(const C&); - C& operator=(const C&); -}; - -int C::count = 0; - -void f2() -{ - C c; - A a; - throw 55; - B b; -} - -void f1() -{ - A a; - B b; - f2(); - C c; -} - -int main() -{ - try - { - f1(); - assert(false); - } - catch (int* i) - { - assert(false); - } - catch (long i) - { - assert(false); - } - catch (int i) - { - assert(i == 55); - } - catch (...) - { - assert(false); - } - assert(A::count == 0); - assert(B::count == 0); - assert(C::count == 0); -} |