- Replace irrelevant synopsis by a comment
- Use a .verify.cpp test instead of .compile.fail.cpp
- Remove unnecessary includes in one of the tests (was a copy-paste error)
Details
- Reviewers
• Quuxplusone - Group Reviewers
Restricted Project - Commits
- rG3e957e5d66aa: [libc++] Refactor tests for trivially copyable atomics
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.pass.cpp | ||
---|---|---|
28 | Could you fix the indentation in this patch as well? |
libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.pass.cpp | ||
---|---|---|
24–25 | Bonus nit here and in the new test: explicit constructors :) | |
libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.verify.cpp | ||
21 | Consider exactly copy-pasting the comment wording from libcxx/test/std/utilities/any/any.nonmembers/any.cast/const_correctness.verify.cpp, just for hypothetical greppability. |
Will apply comments when committing.
libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.verify.cpp | ||
---|---|---|
21 | Unfortunately, that comment is specific to any_cast, so it wouldn't apply here. However, for greppability, one could just look for ADDITIONAL_COMPILE_FLAGS: -Xclang -verify-ignore-unexpected=error. |
Bonus nit here and in the new test: explicit constructors :)