Skip to content

Commit 67baf5e

Browse files
committed
Apply clang-format
1 parent 58dd3ed commit 67baf5e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.verify.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
#include <atomic>
2121

2222
struct NotTriviallyCopyable {
23-
explicit NotTriviallyCopyable(int i) : i_(i) { }
24-
NotTriviallyCopyable(const NotTriviallyCopyable &rhs) : i_(rhs.i_) { }
23+
explicit NotTriviallyCopyable(int i) : i_(i) {}
24+
NotTriviallyCopyable(const NotTriviallyCopyable& rhs) : i_(rhs.i_) {}
2525
int i_;
2626
};
2727

2828
void f() {
2929
NotTriviallyCopyable x(42);
30-
std::atomic<NotTriviallyCopyable> a(x); // expected-error@*:* {{std::atomic<T> requires that 'T' be a trivially copyable type}}
30+
std::atomic<NotTriviallyCopyable> a(
31+
x); // expected-error@*:* {{std::atomic<T> requires that 'T' be a trivially copyable type}}
3132
}

0 commit comments

Comments
 (0)