summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2017-05-14 18:46:19 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2017-05-14 18:46:19 +0000
commitfa4e00b737b2c91a3f4e7b676ee196792e06b3af (patch)
tree5f8e3a76547325ad85a7f677e1738ca10729d8b7 /test
parent9f5f78e16a741d487eb3725122a42b028cfc8129 (diff)
Revert r302978 and r302981.
Revert the two commits to understand why the following aarch64 bot is failing. http://lab.llvm.org:8011/builders/libcxx-libcxxabi-libunwind-aarch64-linux git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@303016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/exception_object_alignment.sh.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/test/exception_object_alignment.sh.cpp b/test/exception_object_alignment.sh.cpp
deleted file mode 100644
index 5f4aea2..0000000
--- a/test/exception_object_alignment.sh.cpp
+++ /dev/null
@@ -1,48 +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: %build -O1
-// RUN: %run
-
-// This test used to fail on Darwin because field unwindHeader of struct
-// __cxa_exception and the exception object that immediately followed were not
-// 16B aligned. It would segfault in class derived's constructor when a movaps
-// tried to write to a memory operand that 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;
-}