From fa4e00b737b2c91a3f4e7b676ee196792e06b3af Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Sun, 14 May 2017 18:46:19 +0000 Subject: 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 --- test/exception_object_alignment.sh.cpp | 48 ---------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 test/exception_object_alignment.sh.cpp (limited to 'test') 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; -} -- cgit v1.2.3