diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-10-12 10:19:48 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-10-12 10:19:48 +0000 |
commit | 6ce45e0840bed276887787749ee7f83fbec65ab9 (patch) | |
tree | dbf37dec4a0f4a4e19e0ed33de33722a6a872562 /libcxx/test/std/atomics | |
parent | d68028789807429945c7852bbda4effa95bf7d21 (diff) | |
download | bcm5719-llvm-6ce45e0840bed276887787749ee7f83fbec65ab9.tar.gz bcm5719-llvm-6ce45e0840bed276887787749ee7f83fbec65ab9.zip |
Remove usages of _ALIGNAS_TYPE
llvm-svn: 283999
Diffstat (limited to 'libcxx/test/std/atomics')
4 files changed, 12 insertions, 4 deletions
diff --git a/libcxx/test/std/atomics/atomics.flag/default.pass.cpp b/libcxx/test/std/atomics/atomics.flag/default.pass.cpp index 11c08f50266..b4c2b9c8083 100644 --- a/libcxx/test/std/atomics/atomics.flag/default.pass.cpp +++ b/libcxx/test/std/atomics/atomics.flag/default.pass.cpp @@ -19,6 +19,8 @@ #include <new> #include <cassert> +#include "test_macros.h" + int main() { std::atomic_flag f; @@ -26,7 +28,7 @@ int main() assert(f.test_and_set() == 0); { typedef std::atomic_flag A; - _ALIGNAS_TYPE(A) char storage[sizeof(A)] = {1}; + TEST_ALIGNAS_TYPE(A) char storage[sizeof(A)] = {1}; A& zero = *new (storage) A(); assert(!zero.test_and_set()); zero.~A(); diff --git a/libcxx/test/std/atomics/atomics.types.generic/address.pass.cpp b/libcxx/test/std/atomics/atomics.types.generic/address.pass.cpp index 137e46b6a15..c31a99c9b9a 100644 --- a/libcxx/test/std/atomics/atomics.types.generic/address.pass.cpp +++ b/libcxx/test/std/atomics/atomics.types.generic/address.pass.cpp @@ -75,6 +75,8 @@ #include <cmpxchg_loop.h> +#include "test_macros.h" + template <class A, class T> void do_test() @@ -121,7 +123,7 @@ do_test() assert(obj == T(2*sizeof(X))); { - _ALIGNAS_TYPE(A) char storage[sizeof(A)] = {23}; + TEST_ALIGNAS_TYPE(A) char storage[sizeof(A)] = {23}; A& zero = *new (storage) A(); assert(zero == T(0)); zero.~A(); diff --git a/libcxx/test/std/atomics/atomics.types.generic/bool.pass.cpp b/libcxx/test/std/atomics/atomics.types.generic/bool.pass.cpp index e85893d12b8..ba38154ed46 100644 --- a/libcxx/test/std/atomics/atomics.types.generic/bool.pass.cpp +++ b/libcxx/test/std/atomics/atomics.types.generic/bool.pass.cpp @@ -57,6 +57,8 @@ #include <cmpxchg_loop.h> +#include "test_macros.h" + int main() { { @@ -226,7 +228,7 @@ int main() } { typedef std::atomic<bool> A; - _ALIGNAS_TYPE(A) char storage[sizeof(A)] = {1}; + TEST_ALIGNAS_TYPE(A) char storage[sizeof(A)] = {1}; A& zero = *new (storage) A(); assert(zero == false); zero.~A(); diff --git a/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp b/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp index a449dc6d5f5..8cb76baf83b 100644 --- a/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp +++ b/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp @@ -92,6 +92,8 @@ #include <cmpxchg_loop.h> +#include "test_macros.h" + template <class A, class T> void do_test() @@ -151,7 +153,7 @@ do_test() assert(obj == T(8)); { - _ALIGNAS_TYPE(A) char storage[sizeof(A)] = {23}; + TEST_ALIGNAS_TYPE(A) char storage[sizeof(A)] = {23}; A& zero = *new (storage) A(); assert(zero == 0); zero.~A(); |