diff options
author | Dan Albert <danalbert@google.com> | 2016-01-04 20:30:03 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-01-04 20:30:03 +0000 |
commit | ed87a4358f7ea83139e82ece851aabd87428bcd5 (patch) | |
tree | d1a82b05327b5b25ad504de68d73b895bc27ef9b | |
parent | fa45b88b6f22c3db6491dd6285f650dcff0ea766 (diff) | |
parent | b679da43c8453db94fe521a547ed282cb3c02602 (diff) | |
download | ndk-ed87a4358f7ea83139e82ece851aabd87428bcd5.tar.gz |
Merge "Fix unwind-struct test for mips64 arch"
-rw-r--r-- | tests/device/test-unwind-struct/jni/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/device/test-unwind-struct/jni/main.c b/tests/device/test-unwind-struct/jni/main.c index d16df13bc..14042037b 100644 --- a/tests/device/test-unwind-struct/jni/main.c +++ b/tests/device/test-unwind-struct/jni/main.c @@ -20,7 +20,7 @@ int main() { CHECK_EQ(88, sizeof(struct _Unwind_Control_Block)); CHECK_EQ(0, offsetof(struct _Unwind_Control_Block, exception_class)); CHECK_EQ(8, offsetof(struct _Unwind_Control_Block, exception_cleanup)); -#elif defined(__mips__) +#elif defined(__mips__) && !defined(__mips64) CHECK_EQ(24, sizeof(struct _Unwind_Exception)); CHECK_EQ(0, offsetof(struct _Unwind_Exception, exception_class)); CHECK_EQ(8, offsetof(struct _Unwind_Exception, exception_cleanup)); @@ -32,7 +32,7 @@ int main() { CHECK_EQ(8, offsetof(struct _Unwind_Exception, exception_cleanup)); CHECK_EQ(12, offsetof(struct _Unwind_Exception, private_1)); CHECK_EQ(16, offsetof(struct _Unwind_Exception, private_2)); -#elif defined(__aarch64__) || defined(__x86_64__) || defined(__mips64__) +#elif defined(__aarch64__) || defined(__x86_64__) || defined(__mips64) CHECK_EQ(32, sizeof(struct _Unwind_Exception)); CHECK_EQ(0, offsetof(struct _Unwind_Exception, exception_class)); CHECK_EQ(8, offsetof(struct _Unwind_Exception, exception_cleanup)); |