diff options
author | JF Bastien <jfb@google.com> | 2016-07-12 20:14:52 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2016-07-12 20:14:52 +0000 |
commit | 5868e5dde99a422b1b865012ffae6b7972a053a9 (patch) | |
tree | 73737836125d98d749da29e74d04c147c0b42e48 /libcxx/test/std/atomics | |
parent | cd03f6f4f63306e81a01dc1cf8caae8f076bebe4 (diff) | |
download | bcm5719-llvm-5868e5dde99a422b1b865012ffae6b7972a053a9.tar.gz bcm5719-llvm-5868e5dde99a422b1b865012ffae6b7972a053a9.zip |
libc++: name anonymous structs
As discussed in http://reviews.llvm.org/D22073
llvm-svn: 275210
Diffstat (limited to 'libcxx/test/std/atomics')
-rw-r--r-- | libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp b/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp index 5577a72528b..e42e9f28448 100644 --- a/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp +++ b/libcxx/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp @@ -70,15 +70,15 @@ int main() CHECK_ALWAYS_LOCK_FREE(double __attribute__((vector_size(4 * sizeof(double))))); CHECK_ALWAYS_LOCK_FREE(double __attribute__((vector_size(16 * sizeof(double))))); CHECK_ALWAYS_LOCK_FREE(double __attribute__((vector_size(32 * sizeof(double))))); - CHECK_ALWAYS_LOCK_FREE(struct{}); - CHECK_ALWAYS_LOCK_FREE(struct{ int i; }); - CHECK_ALWAYS_LOCK_FREE(struct{ int i[2]; }); - CHECK_ALWAYS_LOCK_FREE(struct{ long long int i[2]; }); - CHECK_ALWAYS_LOCK_FREE(struct{ long long int i[4]; }); - CHECK_ALWAYS_LOCK_FREE(struct{ long long int i[8]; }); - CHECK_ALWAYS_LOCK_FREE(struct{ long long int i[16]; }); - CHECK_ALWAYS_LOCK_FREE(struct{ char c; /* padding */ long long int i; }); - CHECK_ALWAYS_LOCK_FREE(union{ int i; float f; }); + CHECK_ALWAYS_LOCK_FREE(struct Empty {}); + CHECK_ALWAYS_LOCK_FREE(struct OneInt { int i; }); + CHECK_ALWAYS_LOCK_FREE(struct IntArr2 { int i[2]; }); + CHECK_ALWAYS_LOCK_FREE(struct LLIArr2 { long long int i[2]; }); + CHECK_ALWAYS_LOCK_FREE(struct LLIArr4 { long long int i[4]; }); + CHECK_ALWAYS_LOCK_FREE(struct LLIArr8 { long long int i[8]; }); + CHECK_ALWAYS_LOCK_FREE(struct LLIArr16 { long long int i[16]; }); + CHECK_ALWAYS_LOCK_FREE(struct Padding { char c; /* padding */ long long int i; }); + CHECK_ALWAYS_LOCK_FREE(union IntFloat { int i; float f; }); // C macro and static constexpr must be consistent. static_assert(std::atomic<bool>::is_always_lock_free == (2 == ATOMIC_BOOL_LOCK_FREE)); |