summaryrefslogtreecommitdiff
path: root/libcxxabi/test/catch_array_01.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/test/catch_array_01.cpp')
-rw-r--r--libcxxabi/test/catch_array_01.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/libcxxabi/test/catch_array_01.cpp b/libcxxabi/test/catch_array_01.cpp
deleted file mode 100644
index 4997602a6d0e..000000000000
--- a/libcxxabi/test/catch_array_01.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-//===---------------------- catch_array_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.
-//
-//===----------------------------------------------------------------------===//
-
-// Can you have a catch clause of array type that catches anything?
-
-#include <cassert>
-
-int main()
-{
- typedef char Array[4];
- Array a = {'H', 'i', '!', 0};
- try
- {
- throw a; // converts to char*
- assert(false);
- }
- catch (Array& b) // can't catch char*
- {
- assert(false);
- }
- catch (...)
- {
- }
-}