summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2017-05-11 06:17:49 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2017-05-11 06:17:49 +0000
commita8ac1e119e8d0cf8d4078f89603a597fea31f667 (patch)
treef1f34ba54ddb05752e4d04168d51d91de3a888f4 /test
parente8b16fa9d547942f8d68af852fb1b25aae85f2a5 (diff)
Revert "[libcxxabi] Align unwindHeader on a double-word boundary."
This reverts commit r302763. The commit caused bot failures. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@302764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/exception_object_alignment.sh.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/test/exception_object_alignment.sh.cpp b/test/exception_object_alignment.sh.cpp
deleted file mode 100644
index 076f45c..0000000
--- a/test/exception_object_alignment.sh.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-//===---------------- exception_object_alignment.sh.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.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: libcxxabi-no-exceptions
-
-// RUN: %cxx %flags %compile_flags -O1 %s -o %t.exe
-// RUN: %exec %t.exe
-
-// This test used to segfault on Darwin because field unwindHeader of struct
-// __cxa_exception was not 16B aligned.
-
-namespace {
-
-struct S {
- int a;
- int __attribute__((aligned(16))) b;
-};
-
-class base1 {
-protected:
- virtual ~base1() throw() {}
-};
-
-class derived: public base1 {
-public:
- derived() : member() {}
-private:
- S member;
-};
-
-}
-
-int main() {
- try {
- throw derived();
- }
- catch(...) {
- }
- return 0;
-}