File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
libcxx/test/std/atomics/atomics.types.generic Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1515// is cv-qualified, however Clang will sometimes emit additional
1616// errors while trying to instantiate the rest of std::atomic<T>.
1717// We silence those to make the test more robust.
18- // ADDITIONAL_COMPILE_FLAGS: -Xclang -verify-ignore-unexpected=error
18+ // ADDITIONAL_COMPILE_FLAGS: -Xclang -verify-ignore-unexpected=error -Wno-deprecated-volatile
1919
2020#include < atomic>
2121
22- void f () {
23- std::atomic<const int > a; // expected-error@*:* {{std::atomic<T> requires that 'T' be a cv-unqualified type}}
24- }
22+ std::atomic<const int > aci; // expected-error@*:* {{std::atomic<T> requires that 'T' be a cv-unqualified type}}
23+ std::atomic<volatile float > avf; // expected-error@*:* {{std::atomic<T> requires that 'T' be a cv-unqualified type}}
You can’t perform that action at this time.
0 commit comments