Author: jfb
Date: Tue Jul 12 15:14:52 2016
New Revision: 275210

URL: http://llvm.org/viewvc/llvm-project?rev=275210&view=rev
Log:
libc++: name anonymous structs
As discussed in http://reviews.llvm.org/D22073

Modified:
    libcxx/trunk/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp

Modified: 
libcxx/trunk/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp?rev=275210&r1=275209&r2=275210&view=diff
==============================================================================
--- libcxx/trunk/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp 
(original)
+++ libcxx/trunk/test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp 
Tue Jul 12 15:14:52 2016
@@ -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));


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to